Class PrimaryKeys

  • All Implemented Interfaces:
    java.lang.Iterable<PrimaryKey>

    @ThreadSafe
    public class PrimaryKeys
    extends java.lang.Object
    implements java.lang.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 Detail

      • PrimaryKeys

        public PrimaryKeys()
    • Method Detail

      • add

        public long add​(PrimaryKey key)
        Adds a PrimaryKey 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 interface java.lang.Iterable<PrimaryKey>