public class CollectCoordinationResponse<T> extends Object implements org.apache.flink.runtime.operators.coordination.CoordinationResponse
CoordinationResponse from the coordinator containing the required batch or new results
and other necessary information in serialized form.
For an explanation of this communication protocol, see Java docs in CollectSinkFunction.
| 构造器和说明 |
|---|
CollectCoordinationResponse(org.apache.flink.core.memory.DataInputView inView) |
CollectCoordinationResponse(String version,
long lastCheckpointedOffset,
List<T> results,
org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getLastCheckpointedOffset() |
List<T> |
getResults(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) |
String |
getVersion() |
void |
serialize(org.apache.flink.core.memory.DataOutputView outView) |
public CollectCoordinationResponse(String version, long lastCheckpointedOffset, List<T> results, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) throws IOException
IOExceptionpublic CollectCoordinationResponse(org.apache.flink.core.memory.DataInputView inView)
throws IOException
IOExceptionpublic String getVersion()
public long getLastCheckpointedOffset()
public List<T> getResults(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) throws IOException
IOExceptionpublic void serialize(org.apache.flink.core.memory.DataOutputView outView)
throws IOException
IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.