Class OnDiskIndex
java.lang.Object
org.apache.cassandra.index.sasi.disk.OnDiskIndex
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<OnDiskIndex.DataTerm>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classclassstatic enumprotected classOnDiskIndex.Level<T extends OnDiskBlock>protected classprotected classprotected classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractType<?>protected final OnDiskIndex.DataLevelfinal Descriptorprotected final booleanprotected final MappedBufferprotected final Stringprotected final longprotected final com.google.common.base.Function<Long,DecoratedKey> protected final OnDiskIndex.PointerLevel[]protected final ByteBufferprotected final ByteBufferprotected final ByteBufferprotected final ByteBufferprotected final OnDiskIndexBuilder.Modeprotected final OnDiskIndexBuilder.TermSize -
Constructor Summary
ConstructorsConstructorDescriptionOnDiskIndex(File index, AbstractType<?> cmp, com.google.common.base.Function<Long, DecoratedKey> keyReader) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()AbstractType<?>booleaniterator()iteratorAt(ByteBuffer query, OnDiskIndex.IteratorOrder order, boolean inclusive) max()maxKey()maxTerm()min()minKey()minTerm()mode()search(Expression exp) Search for rows which match all of the terms inside the given expression in the index file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
descriptor
-
mode
-
termSize
-
comparator
-
indexFile
-
indexSize
protected final long indexSize -
hasMarkedPartials
protected final boolean hasMarkedPartials -
keyFetcher
-
indexPath
-
levels
-
dataLevel
-
minTerm
-
maxTerm
-
minKey
-
maxKey
-
-
Constructor Details
-
OnDiskIndex
public OnDiskIndex(File index, AbstractType<?> cmp, com.google.common.base.Function<Long, DecoratedKey> keyReader)
-
-
Method Details
-
hasMarkedPartials
public boolean hasMarkedPartials() -
mode
-
minTerm
-
maxTerm
-
minKey
-
maxKey
-
min
-
max
-
search
Search for rows which match all of the terms inside the given expression in the index file.- Parameters:
exp- The expression to use for the query.- Returns:
- Iterator which contains rows for all of the terms from the given range.
-
iteratorAt
public Iterator<OnDiskIndex.DataTerm> iteratorAt(ByteBuffer query, OnDiskIndex.IteratorOrder order, boolean inclusive) -
iterator
- Specified by:
iteratorin interfaceIterable<OnDiskIndex.DataTerm>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getComparator
-
getIndexPath
-