Interface StateSnapshot.StateKeyGroupWriter

All Known Subinterfaces:
KeyGroupPartitioner.PartitioningResult<T>
All Known Implementing Classes:
CopyOnWriteStateTableSnapshot
Enclosing interface:
StateSnapshot

public static interface StateSnapshot.StateKeyGroupWriter
Interface for writing a snapshot that is partitioned into key-groups.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeStateInKeyGroup(org.apache.flink.core.memory.DataOutputView dov, int keyGroupId)
    Writes the data for the specified key-group to the output.
  • Method Details

    • writeStateInKeyGroup

      void writeStateInKeyGroup(@Nonnull org.apache.flink.core.memory.DataOutputView dov, @Nonnegative int keyGroupId) throws IOException
      Writes the data for the specified key-group to the output. You must call StateSnapshot.getKeyGroupWriter() once before first calling this method.
      Parameters:
      dov - the output.
      keyGroupId - the key-group to write.
      Throws:
      IOException - on write-related problems.