Class CsvTableSourceFactoryBase
- java.lang.Object
-
- org.apache.flink.table.sources.CsvTableSourceFactoryBase
-
- All Implemented Interfaces:
TableFactory
- Direct Known Subclasses:
CsvAppendTableSourceFactory
,CsvBatchTableSourceFactory
@Internal @Deprecated public abstract class CsvTableSourceFactoryBase extends Object implements TableFactory
Deprecated.The legacy CSV connector has been replaced byFileSource
. It is kept only to support tests for the legacy connector stack.Factory base for creating configured instances ofCsvTableSource
.
-
-
Constructor Summary
Constructors Constructor Description CsvTableSourceFactoryBase()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected CsvTableSource
createTableSource(Boolean isStreaming, Map<String,String> properties)
Deprecated.static List<LogicalType>
getFieldLogicalTypes(TableSchema schema)
Deprecated.Map<String,String>
requiredContext()
Deprecated.Specifies the context that this factory has been implemented for.List<String>
supportedProperties()
Deprecated.List of property keys that this factory can handle.
-
-
-
Method Detail
-
requiredContext
public Map<String,String> requiredContext()
Deprecated.Description copied from interface:TableFactory
Specifies the context that this factory has been implemented for. The framework guarantees to only match for this factory if the specified set of properties and values are met.Typical properties might be: - connector.type - format.type
Specified property versions allow the framework to provide backwards compatible properties in case of string format changes: - connector.property-version - format.property-version
An empty context means that the factory matches for all requests.
- Specified by:
requiredContext
in interfaceTableFactory
-
supportedProperties
public List<String> supportedProperties()
Deprecated.Description copied from interface:TableFactory
List of property keys that this factory can handle. This method will be used for validation. If a property is passed that this factory cannot handle, an exception will be thrown. The list must not contain the keys that are specified by the context.Example properties might be: - schema.#.type - schema.#.name - connector.topic - format.line-delimiter - format.ignore-parse-errors - format.fields.#.type - format.fields.#.name
Note: Use "#" to denote an array of values where "#" represents one or more digits. Property versions like "format.property-version" must not be part of the supported properties.
In some cases it might be useful to declare wildcards "*". Wildcards can only be declared at the end of a property key.
For example, if an arbitrary format should be supported: - format.*
Note: Wildcards should be used with caution as they might swallow unsupported properties and thus might lead to undesired behavior.
- Specified by:
supportedProperties
in interfaceTableFactory
-
createTableSource
protected CsvTableSource createTableSource(Boolean isStreaming, Map<String,String> properties)
Deprecated.
-
getFieldLogicalTypes
public static List<LogicalType> getFieldLogicalTypes(TableSchema schema)
Deprecated.
-
-