Class RowSnapshotWriter

java.lang.Object
org.gridgain.internal.snapshots.RowSnapshotWriter
All Implemented Interfaces:
org.apache.ignite.internal.close.ManuallyCloseable

public class RowSnapshotWriter extends Object implements org.apache.ignite.internal.close.ManuallyCloseable
Writer of binary rows to snapshots.
  • Field Details

    • TOMBSTONE_HEADER_BYTE

      public static final byte TOMBSTONE_HEADER_BYTE
      Byte value representing a tombstone row. This will be written instead of the BinaryRow header, so it cannot collide with any possible BinaryRow header.

      We don't expect to see this byte mask from a partition: - 0b00000100 - PREFIX_FLAG is used for internal purposes, we don't expect to see it when scanning the partition. - 0b00001000 - EQUALITY_FLAG is used for internal purposes, we don't expect to see it when scanning the partition.

      So, putting it all together, we get a super collision resistant byte mask for the tombstone header. See BinaryTupleCommon for more details.

      See Also:
    • BYTE_ORDER

      public static final ByteOrder BYTE_ORDER
    • UUID_SIZE

      public static final int UUID_SIZE
      See Also:
  • Method Details

    • close

      public void close() throws Exception
      Specified by:
      close in interface org.apache.ignite.internal.close.ManuallyCloseable
      Throws:
      Exception