Package org.gridgain.internal.snapshots
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteOrderstatic final byteByte value representing a tombstone row.static final int -
Method Summary
-
Field Details
-
TOMBSTONE_HEADER_BYTE
public static final byte TOMBSTONE_HEADER_BYTEByte 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
BinaryTupleCommonfor more details.- See Also:
-
BYTE_ORDER
-
UUID_SIZE
public static final int UUID_SIZE- See Also:
-
-
Method Details
-
close
- Specified by:
closein interfaceorg.apache.ignite.internal.close.ManuallyCloseable- Throws:
Exception
-