| 程序包 | 说明 |
|---|---|
| org.apache.flink.connector.base.sink.writer |
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedRequestState<RequestEntryT> |
AsyncSinkWriterStateSerializer.deserialize(int version,
byte[] serialized) |
static <T extends Serializable> |
BufferedRequestState.emptyState() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<BufferedRequestState<RequestEntryT>> |
AsyncSinkWriter.snapshotState(long checkpointId)
All in-flight requests that are relevant for the snapshot have been completed, but there may
still be request entries in the internal buffers that are yet to be sent to the endpoint.
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
AsyncSinkWriterStateSerializer.serialize(BufferedRequestState<RequestEntryT> obj)
Serializes state in form of
[DATA_IDENTIFIER,NUM_OF_ELEMENTS,SIZE1,REQUEST1,SIZE2,REQUEST2....].
|
| 构造器和说明 |
|---|
AsyncSinkWriter(ElementConverter<InputT,RequestEntryT> elementConverter,
org.apache.flink.api.connector.sink2.Sink.InitContext context,
AsyncSinkWriterConfiguration configuration,
Collection<BufferedRequestState<RequestEntryT>> states) |
AsyncSinkWriter(ElementConverter<InputT,RequestEntryT> elementConverter,
org.apache.flink.api.connector.sink2.Sink.InitContext context,
int maxBatchSize,
int maxInFlightRequests,
int maxBufferedRequests,
long maxBatchSizeInBytes,
long maxTimeInBufferMS,
long maxRecordSizeInBytes,
Collection<BufferedRequestState<RequestEntryT>> states)
已过时。
|
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.