public static class RangeTombstone.Bound extends Slice.Bound
This is the same than for a slice but it includes "boundaries" between ranges. A boundary simply condensed a close and an opening "bound" into a single object. There is 2 main reasons for these "shortcut" boundaries: 1) When merging multiple iterators having range tombstones (that are represented by their start and end markers), we need to know when a range is close on an iterator, if it is reopened right away. Otherwise, we cannot easily produce the markers on the merged iterators within risking to fail the sorting guarantees of an iterator. See this comment for more details: https://goo.gl/yyB5mR. 2) This saves some storage space.
Modifier and Type | Class and Description |
---|---|
static class |
RangeTombstone.Bound.Serializer |
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind
Modifier and Type | Field and Description |
---|---|
static RangeTombstone.Bound |
BOTTOM
The smallest start bound, i.e.
|
static RangeTombstone.Bound.Serializer |
serializer |
static RangeTombstone.Bound |
TOP
The biggest end bound, i.e.
|
EMPTY_VALUES_ARRAY, kind, values
Constructor and Description |
---|
Bound(ClusteringPrefix.Kind kind,
java.nio.ByteBuffer[] values) |
Modifier and Type | Method and Description |
---|---|
RangeTombstone.Bound |
copy(AbstractAllocator allocator) |
static RangeTombstone.Bound |
exclusiveClose(boolean reversed,
java.nio.ByteBuffer[] boundValues) |
static RangeTombstone.Bound |
exclusiveCloseInclusiveOpen(boolean reversed,
java.nio.ByteBuffer[] boundValues) |
static RangeTombstone.Bound |
exclusiveOpen(boolean reversed,
java.nio.ByteBuffer[] boundValues) |
static RangeTombstone.Bound |
fromSliceBound(Slice.Bound sliceBound) |
static RangeTombstone.Bound |
inclusiveClose(boolean reversed,
java.nio.ByteBuffer[] boundValues) |
static RangeTombstone.Bound |
inclusiveCloseExclusiveOpen(boolean reversed,
java.nio.ByteBuffer[] boundValues) |
static RangeTombstone.Bound |
inclusiveOpen(boolean reversed,
java.nio.ByteBuffer[] boundValues) |
boolean |
isBoundary() |
boolean |
isClose(boolean reversed) |
boolean |
isOpen(boolean reversed) |
RangeTombstone.Bound |
withNewKind(ClusteringPrefix.Kind kind) |
boundKind, create, create, exclusiveEndOf, exclusiveStartOf, exclusiveStartOf, inclusiveEndOf, inclusiveEndOf, inclusiveStartOf, inclusiveStartOf, invert, isEnd, isExclusive, isInclusive, isStart, toString, toString
clustering, dataSize, digest, equals, get, getRawValues, hashCode, kind, size, unsharedHeapSize, unsharedHeapSizeExcludingData
public static final RangeTombstone.Bound.Serializer serializer
public static final RangeTombstone.Bound BOTTOM
public static final RangeTombstone.Bound TOP
public Bound(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
public boolean isBoundary()
public boolean isOpen(boolean reversed)
public boolean isClose(boolean reversed)
public static RangeTombstone.Bound inclusiveOpen(boolean reversed, java.nio.ByteBuffer[] boundValues)
public static RangeTombstone.Bound exclusiveOpen(boolean reversed, java.nio.ByteBuffer[] boundValues)
public static RangeTombstone.Bound inclusiveClose(boolean reversed, java.nio.ByteBuffer[] boundValues)
public static RangeTombstone.Bound exclusiveClose(boolean reversed, java.nio.ByteBuffer[] boundValues)
public static RangeTombstone.Bound inclusiveCloseExclusiveOpen(boolean reversed, java.nio.ByteBuffer[] boundValues)
public static RangeTombstone.Bound exclusiveCloseInclusiveOpen(boolean reversed, java.nio.ByteBuffer[] boundValues)
public static RangeTombstone.Bound fromSliceBound(Slice.Bound sliceBound)
public RangeTombstone.Bound copy(AbstractAllocator allocator)
public RangeTombstone.Bound withNewKind(ClusteringPrefix.Kind kind)
withNewKind
in class Slice.Bound
Copyright © 2017 The Apache Software Foundation