Class SkinnyPrimaryKeyMap

    • Field Detail

      • rowIdToTokenArray

        protected final LongArray rowIdToTokenArray
      • rowIdToPartitionIdArray

        protected final LongArray rowIdToPartitionIdArray
    • Method Detail

      • ceiling

        public long ceiling​(Token token)
        Description copied from interface: PrimaryKeyMap
        Returns the first row ID of the nearest Token greater than or equal to the given Token, or a negative value if not found
        Specified by:
        ceiling in interface PrimaryKeyMap
        Parameters:
        token - the Token to lookup
        Returns:
        the ceiling row ID associated with the Token or a negative value
      • floor

        public long floor​(Token token)
        Description copied from interface: PrimaryKeyMap
        Returns the last row ID of the nearest Token less than or equal to the given Token, or a negative value if the Token is at its minimum value
        Specified by:
        floor in interface PrimaryKeyMap
        Parameters:
        token - the Token to lookup
        Returns:
        the floor row ID associated with the Token
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface PrimaryKeyMap
      • tokenCollisionDetection

        protected long tokenCollisionDetection​(PrimaryKey primaryKey,
                                               long rowId)
      • readPartitionKey

        protected DecoratedKey readPartitionKey​(long sstableRowId)