public class HiveTableSource extends Object implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsPartitionPushDown, org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown, org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveTableSource.HiveContinuousPartitionFetcherContext<T extends Comparable<T>>
PartitionFetcher.Context for
ContinuousPartitionFetcher. |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.table.catalog.CatalogTable |
catalogTable |
protected org.apache.flink.configuration.ReadableConfig |
flinkConf |
protected HiveShim |
hiveShim |
protected String |
hiveVersion |
protected org.apache.hadoop.mapred.JobConf |
jobConf |
protected int[] |
projectedFields |
protected org.apache.flink.table.catalog.ObjectPath |
tablePath |
| Constructor and Description |
|---|
HiveTableSource(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 |
|---|---|
void |
applyLimit(long limit) |
void |
applyPartitions(List<Map<String,String>> remainingPartitions) |
void |
applyProjection(int[][] projectedFields) |
String |
asSummaryString() |
org.apache.flink.table.connector.source.DynamicTableSource |
copy() |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode() |
protected org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> |
getDataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment execEnv) |
protected org.apache.flink.table.api.TableSchema |
getProducedTableSchema() |
org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider |
getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext) |
protected org.apache.flink.table.api.TableSchema |
getTableSchema() |
protected boolean |
isStreamingSource() |
Optional<List<Map<String,String>>> |
listPartitions() |
boolean |
supportsNestedProjection() |
protected final org.apache.hadoop.mapred.JobConf jobConf
protected final org.apache.flink.configuration.ReadableConfig flinkConf
protected final org.apache.flink.table.catalog.ObjectPath tablePath
protected final org.apache.flink.table.catalog.CatalogTable catalogTable
protected final String hiveVersion
protected final HiveShim hiveShim
protected int[] projectedFields
public HiveTableSource(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.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)
getScanRuntimeProvider in interface org.apache.flink.table.connector.source.ScanTableSource@VisibleForTesting protected org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> getDataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment execEnv)
protected boolean isStreamingSource()
protected org.apache.flink.table.api.TableSchema getTableSchema()
protected org.apache.flink.table.api.TableSchema getProducedTableSchema()
public void applyLimit(long limit)
applyLimit in interface org.apache.flink.table.connector.source.abilities.SupportsLimitPushDownpublic Optional<List<Map<String,String>>> listPartitions()
listPartitions in interface org.apache.flink.table.connector.source.abilities.SupportsPartitionPushDownpublic void applyPartitions(List<Map<String,String>> remainingPartitions)
applyPartitions in interface org.apache.flink.table.connector.source.abilities.SupportsPartitionPushDownpublic boolean supportsNestedProjection()
supportsNestedProjection in interface org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDownpublic void applyProjection(int[][] projectedFields)
applyProjection in interface org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDownpublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic org.apache.flink.table.connector.ChangelogMode getChangelogMode()
getChangelogMode in interface org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.DynamicTableSource copy()
copy in interface org.apache.flink.table.connector.source.DynamicTableSourceCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.