Class FileSystemTableFactory
java.lang.Object
org.apache.flink.connector.file.table.FileSystemTableFactory
- All Implemented Interfaces:
org.apache.flink.table.factories.DynamicTableFactory,org.apache.flink.table.factories.DynamicTableSinkFactory,org.apache.flink.table.factories.DynamicTableSourceFactory,org.apache.flink.table.factories.Factory
@Internal
public class FileSystemTableFactory
extends Object
implements org.apache.flink.table.factories.DynamicTableSourceFactory, org.apache.flink.table.factories.DynamicTableSinkFactory
File system
TableFactory.
1.The partition information should be in the file system path, whether it's a temporary table or a catalog table. 2.Support insert into (append) and insert overwrite. 3.Support static and dynamic partition inserting.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.table.factories.DynamicTableFactory
org.apache.flink.table.factories.DynamicTableFactory.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.table.connector.sink.DynamicTableSinkcreateDynamicTableSink(org.apache.flink.table.factories.DynamicTableFactory.Context context) org.apache.flink.table.connector.source.DynamicTableSourcecreateDynamicTableSource(org.apache.flink.table.factories.DynamicTableFactory.Context context) protected <I,F extends org.apache.flink.table.factories.DecodingFormatFactory<I>>
org.apache.flink.table.connector.format.DecodingFormat<I>discoverDecodingFormat(org.apache.flink.table.factories.DynamicTableFactory.Context context, Class<F> formatFactoryClass) Set<org.apache.flink.configuration.ConfigOption<?>>Set<org.apache.flink.configuration.ConfigOption<?>>Set<org.apache.flink.configuration.ConfigOption<?>>protected voidvalidate(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper) protected voidvalidateTimeZone(String zone) Similar logic as forTableConfig.
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
FileSystemTableFactory
public FileSystemTableFactory()
-
-
Method Details
-
factoryIdentifier
- Specified by:
factoryIdentifierin interfaceorg.apache.flink.table.factories.Factory
-
createDynamicTableSource
public org.apache.flink.table.connector.source.DynamicTableSource createDynamicTableSource(org.apache.flink.table.factories.DynamicTableFactory.Context context) - Specified by:
createDynamicTableSourcein interfaceorg.apache.flink.table.factories.DynamicTableSourceFactory
-
createDynamicTableSink
public org.apache.flink.table.connector.sink.DynamicTableSink createDynamicTableSink(org.apache.flink.table.factories.DynamicTableFactory.Context context) - Specified by:
createDynamicTableSinkin interfaceorg.apache.flink.table.factories.DynamicTableSinkFactory
-
requiredOptions
- Specified by:
requiredOptionsin interfaceorg.apache.flink.table.factories.Factory
-
optionalOptions
- Specified by:
optionalOptionsin interfaceorg.apache.flink.table.factories.Factory
-
forwardOptions
- Specified by:
forwardOptionsin interfaceorg.apache.flink.table.factories.DynamicTableFactory
-
validate
protected void validate(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper) -
discoverDecodingFormat
protected <I,F extends org.apache.flink.table.factories.DecodingFormatFactory<I>> org.apache.flink.table.connector.format.DecodingFormat<I> discoverDecodingFormat(org.apache.flink.table.factories.DynamicTableFactory.Context context, Class<F> formatFactoryClass) -
validateTimeZone
Similar logic as forTableConfig.
-