/** * @return true if this index entry contains the row-level tombstone and column summary. Otherwise, * caller should fetch these from the row header. */ public boolean isIndexed() { return columnsIndexCount() > 1; }
public boolean isDone() { return reversed ? currentIndexIdx < 0 : currentIndexIdx >= indexEntry.columnsIndexCount(); }
/** * @return true if this index entry contains the row-level tombstone and column summary. Otherwise, * caller should fetch these from the row header. */ public boolean isIndexed() { return columnsIndexCount() > 1; }
public boolean isDone() { return reversed ? currentIndexIdx < 0 : currentIndexIdx >= indexEntry.columnsIndexCount(); }
/** * @return true if this index entry contains the row-level tombstone and column summary. Otherwise, * caller should fetch these from the row header. */ public boolean isIndexed() { return columnsIndexCount() > 1; }
/** * @return true if this index entry contains the row-level tombstone and column summary. Otherwise, * caller should fetch these from the row header. */ public boolean isIndexed() { return columnsIndexCount() > 1; }
public boolean isDone() { return reversed ? currentIndexIdx < 0 : currentIndexIdx >= indexEntry.columnsIndexCount(); }
public int blocksCount() { return indexEntry.columnsIndexCount(); }
public boolean isDone() { return reversed ? currentIndexIdx < 0 : currentIndexIdx >= indexEntry.columnsIndexCount(); }
public int blocksCount() { return indexEntry.columnsIndexCount(); }
public int blocksCount() { return indexEntry.columnsIndexCount(); }
@Override public String toString() { return String.format("IndexState(indexSize=%d, currentBlock=%d, reversed=%b)", indexEntry.columnsIndexCount(), currentIndexIdx, reversed); }
@Override public String toString() { return String.format("IndexState(indexSize=%d, currentBlock=%d, reversed=%b)", indexEntry.columnsIndexCount(), currentIndexIdx, reversed); }
@Override public String toString() { return String.format("IndexState(indexSize=%d, currentBlock=%d, reversed=%b)", indexEntry.columnsIndexCount(), currentIndexIdx, reversed); }
@Override public String toString() { return String.format("IndexState(indexSize=%d, currentBlock=%d, reversed=%b)", indexEntry.columnsIndexCount(), currentIndexIdx, reversed); }
public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile) { this.reader = reader; this.comparator = comparator; this.indexEntry = indexEntry; this.indexInfoRetriever = indexEntry.openWithIndex(indexFile); this.reversed = reversed; this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1; }
public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile) { this.reader = reader; this.comparator = comparator; this.indexEntry = indexEntry; this.indexInfoRetriever = indexEntry.openWithIndex(indexFile); this.reversed = reversed; this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1; }
public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile) { this.reader = reader; this.comparator = comparator; this.indexEntry = indexEntry; this.indexInfoRetriever = indexEntry.openWithIndex(indexFile); this.reversed = reversed; this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1; }
public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile) { this.reader = reader; this.comparator = comparator; this.indexEntry = indexEntry; this.indexInfoRetriever = indexEntry.openWithIndex(indexFile); this.reversed = reversed; this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1; }
public void setToBlock(int blockIdx) throws IOException { if (blockIdx >= 0 && blockIdx < indexEntry.columnsIndexCount()) { reader.seekToPosition(columnOffset(blockIdx)); reader.deserializer.clearState(); } currentIndexIdx = blockIdx; reader.openMarker = blockIdx > 0 ? index(blockIdx - 1).endOpenMarker : null; mark = reader.file.mark(); }