public class FileSystemLookupFunction<P>
extends org.apache.flink.table.functions.TableFunction<org.apache.flink.table.data.RowData>
The hive connector and filesystem connector share read/write files code. Currently, this function only used in hive connector.
| Constructor and Description |
|---|
FileSystemLookupFunction(PartitionFetcher<P> partitionFetcher,
PartitionFetcher.Context<P> fetcherContext,
PartitionReader<P,org.apache.flink.table.data.RowData> partitionReader,
org.apache.flink.table.types.logical.RowType rowType,
int[] lookupKeys,
java.time.Duration reloadInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
eval(Object... values) |
PartitionFetcher.Context<P> |
getFetcherContext() |
PartitionFetcher<P> |
getPartitionFetcher() |
PartitionReader<P,org.apache.flink.table.data.RowData> |
getPartitionReader() |
java.time.Duration |
getReloadInterval() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> |
getResultType() |
void |
open(org.apache.flink.table.functions.FunctionContext context) |
collect, getKind, getParameterTypes, getTypeInference, setCollectorfunctionIdentifier, toStringpublic FileSystemLookupFunction(PartitionFetcher<P> partitionFetcher, PartitionFetcher.Context<P> fetcherContext, PartitionReader<P,org.apache.flink.table.data.RowData> partitionReader, org.apache.flink.table.types.logical.RowType rowType, int[] lookupKeys, java.time.Duration reloadInterval)
public void open(org.apache.flink.table.functions.FunctionContext context)
throws Exception
open in class org.apache.flink.table.functions.UserDefinedFunctionExceptionpublic org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getResultType()
getResultType in class org.apache.flink.table.functions.TableFunction<org.apache.flink.table.data.RowData>public void eval(Object... values)
public void close()
throws Exception
close in class org.apache.flink.table.functions.UserDefinedFunctionException@VisibleForTesting public java.time.Duration getReloadInterval()
@VisibleForTesting public PartitionFetcher<P> getPartitionFetcher()
@VisibleForTesting public PartitionFetcher.Context<P> getFetcherContext()
@VisibleForTesting public PartitionReader<P,org.apache.flink.table.data.RowData> getPartitionReader()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.