Class PrimaryKeys
java.lang.Object
org.apache.cassandra.index.sai.utils.PrimaryKeys
- All Implemented Interfaces:
Iterable<PrimaryKey>
A sorted set of
PrimaryKeys.
The primary keys are sorted first by token, then by partition key value, and then by clustering.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongadd(PrimaryKey key) Adds aPrimaryKeyand returns the on-heap memory used if the key was addedbooleanisEmpty()iterator()keys()intsize()longMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PrimaryKeys
public PrimaryKeys()
-
-
Method Details
-
add
Adds aPrimaryKeyand returns the on-heap memory used if the key was added -
keys
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceIterable<PrimaryKey>
-