public class HiveLookupTableSource extends HiveTableSource implements org.apache.flink.table.connector.source.LookupTableSource
Hive Table source has both lookup and continuous read ability, when it acts as continuous read source it does not have the lookup ability but can be a temporal table just like other stream sources. When it acts as bounded table, it has the lookup ability.
A common user case is use hive table as dimension table and always lookup the latest partition data, in this case, hive table source is a continuous read source but currently we implements it by LookupFunction. Because currently TableSource can not tell the downstream when the latest partition has been read finished. This is a temporarily workaround and will re-implement in the future.
HiveTableSource.HiveContinuousPartitionFetcherContext<T extends Comparable<T>>org.apache.flink.table.connector.source.LookupTableSource.LookupContext, org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvidercatalogTable, flinkConf, hiveShim, hiveVersion, jobConf, projectedFields, tablePath| Constructor and Description |
|---|
HiveLookupTableSource(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.flink.configuration.ReadableConfig flinkConf,
org.apache.flink.table.catalog.ObjectPath tablePath,
org.apache.flink.table.catalog.CatalogTable catalogTable) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider |
getLookupRuntimeProvider(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context) |
applyLimit, applyPartitions, applyProjection, asSummaryString, copy, getChangelogMode, getDataStream, getProducedTableSchema, getScanRuntimeProvider, getTableSchema, isStreamingSource, listPartitions, supportsNestedProjectionpublic HiveLookupTableSource(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.flink.configuration.ReadableConfig flinkConf,
org.apache.flink.table.catalog.ObjectPath tablePath,
org.apache.flink.table.catalog.CatalogTable catalogTable)
public org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider getLookupRuntimeProvider(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context)
getLookupRuntimeProvider in interface org.apache.flink.table.connector.source.LookupTableSourceCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.