Class PrimaryKeys
- java.lang.Object
-
- org.apache.cassandra.index.sai.utils.PrimaryKeys
-
- All Implemented Interfaces:
java.lang.Iterable<PrimaryKey>
@ThreadSafe public class PrimaryKeys extends java.lang.Object implements java.lang.Iterable<PrimaryKey>
A sorted set ofPrimaryKey
s. The primary keys are sorted first by token, then by partition key value, and then by clustering.
-
-
Constructor Summary
Constructors Constructor Description PrimaryKeys()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
add(PrimaryKey key)
Adds aPrimaryKey
and returns the on-heap memory used if the key was addedboolean
isEmpty()
java.util.Iterator<PrimaryKey>
iterator()
java.util.SortedSet<PrimaryKey>
keys()
int
size()
long
unsharedHeapSize()
-
-
-
Method Detail
-
add
public long add(PrimaryKey key)
Adds aPrimaryKey
and returns the on-heap memory used if the key was added
-
keys
public java.util.SortedSet<PrimaryKey> keys()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
unsharedHeapSize
public long unsharedHeapSize()
-
iterator
public java.util.Iterator<PrimaryKey> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<PrimaryKey>
-
-