Class 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
    A 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.

    See Also:
    Serialized Form
    • 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