public class FileSystemTableSource extends Object implements org.apache.flink.table.sources.StreamTableSource<org.apache.flink.table.data.RowData>, org.apache.flink.table.sources.PartitionableTableSource, org.apache.flink.table.sources.ProjectableTableSource<org.apache.flink.table.data.RowData>, org.apache.flink.table.sources.LimitableTableSource<org.apache.flink.table.data.RowData>, org.apache.flink.table.sources.FilterableTableSource<org.apache.flink.table.data.RowData>
| Constructor and Description |
|---|
FileSystemTableSource(org.apache.flink.table.api.TableSchema schema,
org.apache.flink.core.fs.Path path,
List<String> partitionKeys,
String defaultPartName,
Map<String,String> properties)
Construct a file system table source.
|
| Modifier and Type | Method and Description |
|---|---|
FileSystemTableSource |
applyLimit(long limit) |
FileSystemTableSource |
applyPartitionPruning(List<Map<String,String>> remainingPartitions) |
FileSystemTableSource |
applyPredicate(List<org.apache.flink.table.expressions.Expression> predicates) |
String |
explainSource() |
org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> |
getDataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment execEnv) |
List<Map<String,String>> |
getPartitions() |
org.apache.flink.table.types.DataType |
getProducedDataType() |
org.apache.flink.table.api.TableSchema |
getTableSchema() |
boolean |
isBounded() |
boolean |
isFilterPushedDown() |
boolean |
isLimitPushedDown() |
FileSystemTableSource |
projectFields(int[] fields) |
public FileSystemTableSource(org.apache.flink.table.api.TableSchema schema,
org.apache.flink.core.fs.Path path,
List<String> partitionKeys,
String defaultPartName,
Map<String,String> properties)
schema - schema of the table.path - directory path of the file system table.partitionKeys - partition keys of the table.defaultPartName - The default partition name in case the dynamic partition column value
is null/empty string.properties - table properties.public org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> getDataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment execEnv)
getDataStream in interface org.apache.flink.table.sources.StreamTableSource<org.apache.flink.table.data.RowData>public boolean isBounded()
isBounded in interface org.apache.flink.table.sources.StreamTableSource<org.apache.flink.table.data.RowData>public List<Map<String,String>> getPartitions()
getPartitions in interface org.apache.flink.table.sources.PartitionableTableSourcepublic FileSystemTableSource applyPartitionPruning(List<Map<String,String>> remainingPartitions)
applyPartitionPruning in interface org.apache.flink.table.sources.PartitionableTableSourcepublic FileSystemTableSource projectFields(int[] fields)
projectFields in interface org.apache.flink.table.sources.ProjectableTableSource<org.apache.flink.table.data.RowData>public FileSystemTableSource applyLimit(long limit)
applyLimit in interface org.apache.flink.table.sources.LimitableTableSource<org.apache.flink.table.data.RowData>public boolean isLimitPushedDown()
isLimitPushedDown in interface org.apache.flink.table.sources.LimitableTableSource<org.apache.flink.table.data.RowData>public FileSystemTableSource applyPredicate(List<org.apache.flink.table.expressions.Expression> predicates)
applyPredicate in interface org.apache.flink.table.sources.FilterableTableSource<org.apache.flink.table.data.RowData>public boolean isFilterPushedDown()
isFilterPushedDown in interface org.apache.flink.table.sources.FilterableTableSource<org.apache.flink.table.data.RowData>public org.apache.flink.table.types.DataType getProducedDataType()
getProducedDataType in interface org.apache.flink.table.sources.TableSource<org.apache.flink.table.data.RowData>public org.apache.flink.table.api.TableSchema getTableSchema()
getTableSchema in interface org.apache.flink.table.sources.TableSource<org.apache.flink.table.data.RowData>public String explainSource()
explainSource in interface org.apache.flink.table.sources.TableSource<org.apache.flink.table.data.RowData>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.