Class V1SSTableIndex

    • Method Detail

      • indexFileCacheSize

        public long indexFileCacheSize()
        Description copied from class: SSTableIndex
        Returns the amount of memory occupied by the index when it is initially loaded. This is the amount of data loaded into internal memory buffers by the index and does include the class footprint overhead. It used by the index metrics.
        Specified by:
        indexFileCacheSize in class SSTableIndex
      • getRowCount

        public long getRowCount()
        Description copied from class: SSTableIndex
        Returns the number of indexed rows in the index. This comes from the index metadata created when the index was written and is used by the index metrics.
        Specified by:
        getRowCount in class SSTableIndex
      • minSSTableRowId

        public long minSSTableRowId()
        Description copied from class: SSTableIndex
        Returns the minimum indexed rowId for the index. This comes from the index metadata created when the index was written and is used by the index metrics.
        Specified by:
        minSSTableRowId in class SSTableIndex
      • maxSSTableRowId

        public long maxSSTableRowId()
        Description copied from class: SSTableIndex
        Returns the maximum indexed rowId for the index. This comes from the index metadata created when the index was written and is used by the index metrics.
        Specified by:
        maxSSTableRowId in class SSTableIndex
      • minTerm

        public java.nio.ByteBuffer minTerm()
        Description copied from class: SSTableIndex
        Returns the minimum term held in the index based on the natural sort order of the index column type comparator. It comes from the index metadata created when the index was written and is used by the index metrics and used in queries to determine whether a term, or range or terms, exists in the index.
        Specified by:
        minTerm in class SSTableIndex
      • maxTerm

        public java.nio.ByteBuffer maxTerm()
        Description copied from class: SSTableIndex
        Returns the maximum term held in the index based on the natural sort order of the index column type comparator. It comes from the index metadata created when the index was written and is used by the index metrics and used in queries to determine whether a term, or range or terms, exists in the index.
        Specified by:
        maxTerm in class SSTableIndex
      • bounds

        public AbstractBounds<PartitionPosition> bounds()
        Description copied from class: SSTableIndex
        Returns the key bounds of the index. It is created from the minimum and maximum keys held in the metadata and is used to determine whether sstable indexes overlap or not.
        Specified by:
        bounds in class SSTableIndex
      • limitToTopKResults

        public KeyRangeIterator limitToTopKResults​(QueryContext context,
                                                   java.util.List<PrimaryKey> primaryKeys,
                                                   Expression expression)
                                            throws java.io.IOException
        Description copied from interface: SegmentOrdering
        Reorder, limit, and put back into original order the results from a single sstable
        Throws:
        java.io.IOException