T
- Type of records that this TableSink
expects and supports.DynamicTableSink
. The new interface
consumes internal data structures. See FLIP-95 for more information.@Deprecated @PublicEvolving public interface RetractStreamTableSink<T> extends StreamTableSink<Tuple2<Boolean,T>>
TableSink
to emit a streaming Table
with insert, update, and
delete changes.
The table will be converted into a stream of accumulate and retraction messages which are
encoded as Tuple2
. The first field is a Boolean
flag to indicate the message
type. The second field holds the record of the requested type T
.
A message with true Boolean
flag is an accumulate (or add) message.
A message with false flag is a retract message.
Modifier and Type | Method and Description |
---|---|
default TypeInformation<Tuple2<Boolean,T>> |
getOutputType()
Deprecated.
|
TypeInformation<T> |
getRecordType()
Deprecated.
Returns the requested record type.
|
consumeDataStream
configure, getConsumedDataType, getFieldNames, getFieldTypes, getTableSchema
TypeInformation<T> getRecordType()
default TypeInformation<Tuple2<Boolean,T>> getOutputType()
getOutputType
in interface TableSink<Tuple2<Boolean,T>>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.