Class CollectCoordinationResponse
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.collect.CollectCoordinationResponse
-
- All Implemented Interfaces:
Serializable,org.apache.flink.runtime.operators.coordination.CoordinationResponse
public class CollectCoordinationResponse extends Object implements org.apache.flink.runtime.operators.coordination.CoordinationResponse
ACoordinationResponsefrom 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectCoordinationResponse(String version, long lastCheckpointedOffset, List<byte[]> serializedResults)CollectCoordinationResponse(org.apache.flink.core.memory.DataInputView inView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastCheckpointedOffset()<T> List<T>getResults(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer)StringgetVersion()voidserialize(org.apache.flink.core.memory.DataOutputView outView)
-
-
-
Constructor Detail
-
CollectCoordinationResponse
public CollectCoordinationResponse(String version, long lastCheckpointedOffset, List<byte[]> serializedResults)
-
CollectCoordinationResponse
public CollectCoordinationResponse(org.apache.flink.core.memory.DataInputView inView) throws IOException- Throws:
IOException
-
-
Method Detail
-
getVersion
public String getVersion()
-
getLastCheckpointedOffset
public long getLastCheckpointedOffset()
-
getResults
public <T> List<T> getResults(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) throws IOException
- Throws:
IOException
-
serialize
public void serialize(org.apache.flink.core.memory.DataOutputView outView) throws IOException- Throws:
IOException
-
-