@PublicEvolving public class PrintTableSinkFactory extends Object implements DynamicTableSinkFactory
Four possible format options: PRINT_IDENTIFIER
:taskId> output <- PRINT_IDENTIFIER
provided, parallelism > 1 PRINT_IDENTIFIER
> output <- PRINT_IDENTIFIER
provided, parallelism == 1 taskId> output <- no PRINT_IDENTIFIER
provided, parallelism > 1 output <- no PRINT_IDENTIFIER
provided, parallelism == 1
output string format is "$RowKind(f0,f1,f2...)", example is: "+I(1,1)".
DynamicTableFactory.Context
Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER |
static ConfigOption<String> |
PRINT_IDENTIFIER |
static ConfigOption<Boolean> |
STANDARD_ERROR |
Constructor and Description |
---|
PrintTableSinkFactory() |
Modifier and Type | Method and Description |
---|---|
DynamicTableSink |
createDynamicTableSink(DynamicTableFactory.Context context)
Creates a
DynamicTableSink instance from a CatalogTable and additional
context information. |
String |
factoryIdentifier()
Returns a unique identifier among same factory interfaces.
|
Set<ConfigOption<?>> |
optionalOptions()
Returns a set of
ConfigOption that an implementation of this factory consumes in
addition to Factory.requiredOptions() . |
Set<ConfigOption<?>> |
requiredOptions()
Returns a set of
ConfigOption that an implementation of this factory requires in
addition to Factory.optionalOptions() . |
public static final String IDENTIFIER
public static final ConfigOption<String> PRINT_IDENTIFIER
public static final ConfigOption<Boolean> STANDARD_ERROR
public String factoryIdentifier()
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
).
factoryIdentifier
in interface Factory
public Set<ConfigOption<?>> requiredOptions()
Factory
ConfigOption
that an implementation of this factory requires in
addition to Factory.optionalOptions()
.
See the documentation of Factory
for more information.
requiredOptions
in interface Factory
public Set<ConfigOption<?>> optionalOptions()
Factory
ConfigOption
that an implementation of this factory consumes in
addition to Factory.requiredOptions()
.
See the documentation of Factory
for more information.
optionalOptions
in interface Factory
public DynamicTableSink createDynamicTableSink(DynamicTableFactory.Context context)
DynamicTableSinkFactory
DynamicTableSink
instance from a CatalogTable
and additional
context information.
An implementation should perform validation and the discovery of further (nested) factories in this method.
createDynamicTableSink
in interface DynamicTableSinkFactory
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.