public abstract class OnDiskBlock<T extends Term>
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | OnDiskBlock.BlockType | 
| static class  | OnDiskBlock.SearchResult<T> | 
| Modifier and Type | Field and Description | 
|---|---|
| protected MappedBuffer | blockIndex | 
| protected int | blockIndexSize | 
| protected TokenTree | combinedIndex | 
| protected boolean | hasCombinedIndex | 
| Constructor and Description | 
|---|
| OnDiskBlock(Descriptor descriptor,
           MappedBuffer block,
           OnDiskBlock.BlockType blockType) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract T | cast(MappedBuffer data) | 
| TokenTree | getBlockIndex() | 
| protected T | getTerm(int index) | 
| protected long | getTermPosition(int idx) | 
| int | maxOffset(OnDiskIndex.IteratorOrder order) | 
| int | minOffset(OnDiskIndex.IteratorOrder order) | 
| OnDiskBlock.SearchResult<T> | search(AbstractType<?> comparator,
      java.nio.ByteBuffer query) | 
| protected int | termCount() | 
protected final MappedBuffer blockIndex
protected final int blockIndexSize
protected final boolean hasCombinedIndex
protected final TokenTree combinedIndex
public OnDiskBlock(Descriptor descriptor, MappedBuffer block, OnDiskBlock.BlockType blockType)
public OnDiskBlock.SearchResult<T> search(AbstractType<?> comparator, java.nio.ByteBuffer query)
protected T getTerm(int index)
protected long getTermPosition(int idx)
protected int termCount()
protected abstract T cast(MappedBuffer data)
public TokenTree getBlockIndex()
public int minOffset(OnDiskIndex.IteratorOrder order)
public int maxOffset(OnDiskIndex.IteratorOrder order)
Copyright © 2018 The Apache Software Foundation