public class KafkaLogStoreFactory extends Object implements LogStoreTableFactory
LogStoreTableFactory
implementation.LogStoreTableFactory.RegisterContext
Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER |
static String |
KAFKA_PREFIX |
Constructor and Description |
---|
KafkaLogStoreFactory() |
Modifier and Type | Method and Description |
---|---|
LogStoreRegister |
createRegister(LogStoreTableFactory.RegisterContext context)
Creates a
LogStoreRegister instance for table ddl, it will register table to log
store when a table is created or dropped. |
KafkaLogSinkProvider |
createSinkProvider(org.apache.flink.table.factories.DynamicTableFactory.Context context,
org.apache.flink.table.connector.sink.DynamicTableSink.Context sinkContext)
Creates a
LogSinkProvider instance from a CatalogTable and additional context
information. |
KafkaLogSourceProvider |
createSourceProvider(org.apache.flink.table.factories.DynamicTableFactory.Context context,
org.apache.flink.table.connector.source.DynamicTableSource.Context sourceContext,
int[][] projectFields)
Creates a
LogSourceProvider instance from a CatalogTable and additional
context information. |
String |
identifier()
Returns a unique identifier among same factory interfaces.
|
static Properties |
toKafkaProperties(Options options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
discoverLogStoreFactory, getKeyDecodingFormat, getKeyEncodingFormat, getValueDecodingFormat, getValueEncodingFormat, logFormat, logKeyFormat, validateKeyFormat, validateValueFormat
public static final String IDENTIFIER
public static final String KAFKA_PREFIX
public String identifier()
Factory
For consistency, an identifier should be declared as one lower case word (e.g. kafka
). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7
).
identifier
in interface Factory
public KafkaLogSourceProvider createSourceProvider(org.apache.flink.table.factories.DynamicTableFactory.Context context, org.apache.flink.table.connector.source.DynamicTableSource.Context sourceContext, @Nullable int[][] projectFields)
LogStoreTableFactory
LogSourceProvider
instance from a CatalogTable
and additional
context information.createSourceProvider
in interface LogStoreTableFactory
public KafkaLogSinkProvider createSinkProvider(org.apache.flink.table.factories.DynamicTableFactory.Context context, org.apache.flink.table.connector.sink.DynamicTableSink.Context sinkContext)
LogStoreTableFactory
LogSinkProvider
instance from a CatalogTable
and additional context
information.createSinkProvider
in interface LogStoreTableFactory
public LogStoreRegister createRegister(LogStoreTableFactory.RegisterContext context)
LogStoreTableFactory
LogStoreRegister
instance for table ddl, it will register table to log
store when a table is created or dropped.createRegister
in interface LogStoreTableFactory
public static Properties toKafkaProperties(Options options)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.