Package org.apache.cassandra.db
Interface Clustering<V>
- All Superinterfaces:
Clusterable<V>,ClusteringPrefix<V>,IMeasurableMemory
- All Known Implementing Classes:
ArrayClustering,BufferClustering,NativeClustering
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSerializer for Clustering object.Nested classes/interfaces inherited from interface org.apache.cassandra.db.ClusteringPrefix
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Clustering<ByteBuffer>Empty clustering for tables having no clustering columns.static final Clustering.Serializerstatic final Clustering<ByteBuffer>The special cased clustering used by all static rows. -
Method Summary
Modifier and TypeMethodDescriptiondefault ClusteringBound<V>Returns this prefix as an end bound.default ClusteringBound<V>Returns this prefix as a start bound.default Clustering<?>clone(ByteBufferCloner cloner) static Clustering<ByteBuffer>make(ByteBuffer... values) default StringtoCQLString(TableMetadata metadata) default StringtoString(TableMetadata metadata) Generates a proper string representation of the prefix.longMethods inherited from interface org.apache.cassandra.db.Clusterable
clusteringMethods inherited from interface org.apache.cassandra.db.ClusteringPrefix
accessor, bufferAt, clusteringString, dataSize, digest, get, getBufferArray, getRawValues, isBottom, isEmpty, isTop, kind, retainable, serializeAsPartitionKey, size, stringAt, validate, validateMethods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
Field Details
-
serializer
-
STATIC_CLUSTERING
The special cased clustering used by all static rows. It is a special case in the sense that it's always empty, no matter how many clustering columns the table has. -
EMPTY
Empty clustering for tables having no clustering columns.
-
-
Method Details
-
clone
-
asStartBound
Description copied from interface:ClusteringPrefixReturns this prefix as a start bound. If this prefix is a bound, just returns it asserting that it is a start bound. If this prefix is a clustering, returns an included start bound. If this prefix is a boundary, returns an open bound of it- Specified by:
asStartBoundin interfaceClusteringPrefix<V>
-
asEndBound
Description copied from interface:ClusteringPrefixReturns this prefix as an end bound. If this prefix is a bound, just returns it asserting that it is an end bound. If this prefix is a clustering, returns an included end bound. In this prefix is a boundary, returns a close bound of it.- Specified by:
asEndBoundin interfaceClusteringPrefix<V>
-
toString
Description copied from interface:ClusteringPrefixGenerates a proper string representation of the prefix.- Specified by:
toStringin interfaceClusteringPrefix<V>- Parameters:
metadata- the metadata for the table the clustering prefix is of.- Returns:
- a human-readable string representation fo this prefix.
-
toCQLString
-
make