public class OnDiskIndex extends java.lang.Object implements java.lang.Iterable<OnDiskIndex.DataTerm>, java.io.Closeable
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | OnDiskIndex.DataBlock | 
| protected class  | OnDiskIndex.DataLevel | 
| class  | OnDiskIndex.DataTerm | 
| static class  | OnDiskIndex.IteratorOrder | 
| protected class  | OnDiskIndex.Level<T extends OnDiskBlock> | 
| protected class  | OnDiskIndex.OnDiskSuperBlock | 
| protected class  | OnDiskIndex.PointerBlock | 
| protected class  | OnDiskIndex.PointerLevel | 
| protected static class  | OnDiskIndex.PointerTerm | 
| Modifier and Type | Field and Description | 
|---|---|
| protected AbstractType<?> | comparator | 
| protected OnDiskIndex.DataLevel | dataLevel | 
| Descriptor | descriptor | 
| protected boolean | hasMarkedPartials | 
| protected MappedBuffer | indexFile | 
| protected java.lang.String | indexPath | 
| protected long | indexSize | 
| protected com.google.common.base.Function<java.lang.Long,DecoratedKey> | keyFetcher | 
| protected OnDiskIndex.PointerLevel[] | levels | 
| protected java.nio.ByteBuffer | maxKey | 
| protected java.nio.ByteBuffer | maxTerm | 
| protected java.nio.ByteBuffer | minKey | 
| protected java.nio.ByteBuffer | minTerm | 
| protected OnDiskIndexBuilder.Mode | mode | 
| protected OnDiskIndexBuilder.TermSize | termSize | 
| Constructor and Description | 
|---|
| OnDiskIndex(java.io.File index,
           AbstractType<?> cmp,
           com.google.common.base.Function<java.lang.Long,DecoratedKey> keyReader) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| AbstractType<?> | getComparator() | 
| java.lang.String | getIndexPath() | 
| boolean | hasMarkedPartials() | 
| java.util.Iterator<OnDiskIndex.DataTerm> | iterator() | 
| java.util.Iterator<OnDiskIndex.DataTerm> | iteratorAt(java.nio.ByteBuffer query,
          OnDiskIndex.IteratorOrder order,
          boolean inclusive) | 
| OnDiskIndex.DataTerm | max() | 
| java.nio.ByteBuffer | maxKey() | 
| java.nio.ByteBuffer | maxTerm() | 
| OnDiskIndex.DataTerm | min() | 
| java.nio.ByteBuffer | minKey() | 
| java.nio.ByteBuffer | minTerm() | 
| OnDiskIndexBuilder.Mode | mode() | 
| RangeIterator<java.lang.Long,Token> | search(Expression exp)Search for rows which match all of the terms inside the given expression in the index file. | 
public final Descriptor descriptor
protected final OnDiskIndexBuilder.Mode mode
protected final OnDiskIndexBuilder.TermSize termSize
protected final AbstractType<?> comparator
protected final MappedBuffer indexFile
protected final long indexSize
protected final boolean hasMarkedPartials
protected final com.google.common.base.Function<java.lang.Long,DecoratedKey> keyFetcher
protected final java.lang.String indexPath
protected final OnDiskIndex.PointerLevel[] levels
protected final OnDiskIndex.DataLevel dataLevel
protected final java.nio.ByteBuffer minTerm
protected final java.nio.ByteBuffer maxTerm
protected final java.nio.ByteBuffer minKey
protected final java.nio.ByteBuffer maxKey
public OnDiskIndex(java.io.File index,
                   AbstractType<?> cmp,
                   com.google.common.base.Function<java.lang.Long,DecoratedKey> keyReader)
public boolean hasMarkedPartials()
public OnDiskIndexBuilder.Mode mode()
public java.nio.ByteBuffer minTerm()
public java.nio.ByteBuffer maxTerm()
public java.nio.ByteBuffer minKey()
public java.nio.ByteBuffer maxKey()
public OnDiskIndex.DataTerm min()
public OnDiskIndex.DataTerm max()
public RangeIterator<java.lang.Long,Token> search(Expression exp)
exp - The expression to use for the query.public java.util.Iterator<OnDiskIndex.DataTerm> iteratorAt(java.nio.ByteBuffer query, OnDiskIndex.IteratorOrder order, boolean inclusive)
public java.util.Iterator<OnDiskIndex.DataTerm> iterator()
iterator in interface java.lang.Iterable<OnDiskIndex.DataTerm>public void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic AbstractType<?> getComparator()
public java.lang.String getIndexPath()
Copyright © 2018 The Apache Software Foundation