public interface ClusteringBoundOrBoundary<V> extends ClusteringPrefix<V>
The latter is used for range tombstones for 2 main reasons: 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 | Interface and Description |
---|---|
static class |
ClusteringBoundOrBoundary.Serializer |
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind
Modifier and Type | Field and Description |
---|---|
static ClusteringBoundOrBoundary.Serializer |
serializer |
Modifier and Type | Method and Description |
---|---|
default ClusteringBoundOrBoundary<java.nio.ByteBuffer> |
copy(AbstractAllocator allocator) |
ClusteringBoundOrBoundary<V> |
invert()
Returns the inverse of the current bound.
|
default boolean |
isBoundary() |
default boolean |
isClose(boolean reversed) |
default boolean |
isOpen(boolean reversed) |
default java.lang.String |
toString(ClusteringComparator comparator) |
default java.lang.String |
toString(TableMetadata metadata)
Generates a proper string representation of the prefix.
|
accessor, bufferAt, dataSize, digest, equals, equals, get, getBufferArray, getRawValues, hashCode, isBottom, isEmpty, isTop, kind, minimize, serializeAsPartitionKey, size, stringAt, validate
unsharedHeapSize
clustering
static final ClusteringBoundOrBoundary.Serializer serializer
default boolean isBoundary()
default boolean isOpen(boolean reversed)
default boolean isClose(boolean reversed)
default ClusteringBoundOrBoundary<java.nio.ByteBuffer> copy(AbstractAllocator allocator)
default java.lang.String toString(TableMetadata metadata)
ClusteringPrefix
toString
in interface ClusteringPrefix<V>
metadata
- the metadata for the table the clustering prefix is of.default java.lang.String toString(ClusteringComparator comparator)
ClusteringBoundOrBoundary<V> invert()
This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).
Copyright © 2009-2021 The Apache Software Foundation