@Internal public class KinesisFirehoseDynamicSink extends AsyncDynamicTableSink<software.amazon.awssdk.services.firehose.model.Record>
AsyncDynamicTableSink
.Modifier and Type | Class and Description |
---|---|
static class |
KinesisFirehoseDynamicSink.KinesisFirehoseDynamicSinkBuilder
Builder class for
KinesisFirehoseDynamicSink . |
DynamicTableSink.Context, DynamicTableSink.DataStructureConverter, DynamicTableSink.SinkRuntimeProvider
maxBatchSize, maxBufferedRequests, maxBufferSizeInBytes, maxInFlightRequests, maxTimeInBufferMS
Modifier | Constructor and Description |
---|---|
protected |
KinesisFirehoseDynamicSink(Integer maxBatchSize,
Integer maxInFlightRequests,
Integer maxBufferedRequests,
Long maxBufferSizeInBytes,
Long maxTimeInBufferMS,
Boolean failOnError,
DataType consumedDataType,
String deliveryStream,
Properties firehoseClientProperties,
EncodingFormat<SerializationSchema<RowData>> encodingFormat) |
Modifier and Type | Method and Description |
---|---|
String |
asSummaryString()
Returns a string that summarizes this sink for printing to a console or log.
|
DynamicTableSink |
copy()
Creates a copy of this instance during planning.
|
ChangelogMode |
getChangelogMode(ChangelogMode requestedMode)
Returns the set of changes that the sink accepts during runtime.
|
DynamicTableSink.SinkRuntimeProvider |
getSinkRuntimeProvider(DynamicTableSink.Context context)
Returns a provider of runtime implementation for writing the data.
|
addAsyncOptionsToSinkBuilder, equals, hashCode
protected KinesisFirehoseDynamicSink(@Nullable Integer maxBatchSize, @Nullable Integer maxInFlightRequests, @Nullable Integer maxBufferedRequests, @Nullable Long maxBufferSizeInBytes, @Nullable Long maxTimeInBufferMS, @Nullable Boolean failOnError, @Nullable DataType consumedDataType, String deliveryStream, @Nullable Properties firehoseClientProperties, EncodingFormat<SerializationSchema<RowData>> encodingFormat)
public ChangelogMode getChangelogMode(ChangelogMode requestedMode)
DynamicTableSink
The planner can make suggestions but the sink has the final decision what it requires. If
the planner does not support this mode, it will throw an error. For example, the sink can
return that it only supports ChangelogMode.insertOnly()
.
requestedMode
- expected set of changes by the current planpublic DynamicTableSink.SinkRuntimeProvider getSinkRuntimeProvider(DynamicTableSink.Context context)
DynamicTableSink
There might exist different interfaces for runtime implementation which is why DynamicTableSink.SinkRuntimeProvider
serves as the base interface. Concrete DynamicTableSink.SinkRuntimeProvider
interfaces might be located in other Flink modules.
Independent of the provider interface, the table runtime expects that a sink
implementation accepts internal data structures (see RowData
for more information).
The given DynamicTableSink.Context
offers utilities by the planner for creating runtime
implementation with minimal dependencies to internal data structures.
SinkProvider
is the recommended core interface. SinkFunctionProvider
in
flink-table-api-java-bridge
and OutputFormatProvider
are available for
backwards compatibility.
SinkProvider
public DynamicTableSink copy()
DynamicTableSink
public String asSummaryString()
DynamicTableSink
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.