public class CollectCoordinationResponse extends Object implements 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
.
Constructor and Description |
---|
CollectCoordinationResponse(DataInputView inView) |
CollectCoordinationResponse(String version,
long lastCheckpointedOffset,
List<byte[]> serializedResults) |
Modifier and Type | Method and Description |
---|---|
long |
getLastCheckpointedOffset() |
<T> List<T> |
getResults(TypeSerializer<T> elementSerializer) |
String |
getVersion() |
void |
serialize(DataOutputView outView) |
public CollectCoordinationResponse(String version, long lastCheckpointedOffset, List<byte[]> serializedResults)
public CollectCoordinationResponse(DataInputView inView) throws IOException
IOException
public String getVersion()
public long getLastCheckpointedOffset()
public <T> List<T> getResults(TypeSerializer<T> elementSerializer) throws IOException
IOException
public void serialize(DataOutputView outView) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.