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>
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.flink.table.sources.StreamTableSource<org.apache.flink.table.data.RowData>public boolean isBounded()
isBounded 在接口中 org.apache.flink.table.sources.StreamTableSource<org.apache.flink.table.data.RowData>public List<Map<String,String>> getPartitions()
getPartitions 在接口中 org.apache.flink.table.sources.PartitionableTableSourcepublic FileSystemTableSource applyPartitionPruning(List<Map<String,String>> remainingPartitions)
applyPartitionPruning 在接口中 org.apache.flink.table.sources.PartitionableTableSourcepublic FileSystemTableSource projectFields(int[] fields)
projectFields 在接口中 org.apache.flink.table.sources.ProjectableTableSource<org.apache.flink.table.data.RowData>public FileSystemTableSource applyLimit(long limit)
applyLimit 在接口中 org.apache.flink.table.sources.LimitableTableSource<org.apache.flink.table.data.RowData>public boolean isLimitPushedDown()
isLimitPushedDown 在接口中 org.apache.flink.table.sources.LimitableTableSource<org.apache.flink.table.data.RowData>public FileSystemTableSource applyPredicate(List<org.apache.flink.table.expressions.Expression> predicates)
applyPredicate 在接口中 org.apache.flink.table.sources.FilterableTableSource<org.apache.flink.table.data.RowData>public boolean isFilterPushedDown()
isFilterPushedDown 在接口中 org.apache.flink.table.sources.FilterableTableSource<org.apache.flink.table.data.RowData>public org.apache.flink.table.types.DataType getProducedDataType()
getProducedDataType 在接口中 org.apache.flink.table.sources.TableSource<org.apache.flink.table.data.RowData>public org.apache.flink.table.api.TableSchema getTableSchema()
getTableSchema 在接口中 org.apache.flink.table.sources.TableSource<org.apache.flink.table.data.RowData>public String explainSource()
explainSource 在接口中 org.apache.flink.table.sources.TableSource<org.apache.flink.table.data.RowData>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.