public class MemoryMappedIndex extends BitStreamIndex
Memory-mapped indices are created by mapping the index file into memory
using a MappedByteBuffer. The main advantage over an InMemoryIndex
is that only the most frequently used parts of the index will be loaded in core memory.
BitStreamIndex.PropertyKeysIndex.EmptyIndexIterator, Index.UriKeys| Modifier and Type | Field and Description |
|---|---|
protected ByteBufferInputStream |
index
The byte buffer containing the index.
|
bufferSize, countCoding, DEFAULT_BUFFER_SIZE, DEFAULT_FIXED_QUANTUM, DEFAULT_HEIGHT, DEFAULT_QUANTUM, FIXED_POINT_BITS, FIXED_POINT_MULTIPLIER, frequencyCoding, height, offsets, pointerCoding, positionCoding, quantum, readerConstructorfield, hasCounts, hasPayloads, hasPositions, keyIndex, maxCount, numberOfDocuments, numberOfOccurrences, numberOfPostings, numberOfTerms, payload, prefixMap, properties, singletonSet, sizes, termMap, termProcessor| Constructor and Description |
|---|
MemoryMappedIndex(ByteBufferInputStream index,
int numberOfDocuments,
int numberOfTerms,
long numberOfPostings,
long numberOfOccurrences,
int maxCount,
Payload payload,
CompressionFlags.Coding frequencyCoding,
CompressionFlags.Coding pointerCoding,
CompressionFlags.Coding countCoding,
CompressionFlags.Coding positionCoding,
int quantum,
int height,
TermProcessor termProcessor,
String field,
Properties properties,
StringMap<? extends CharSequence> termMap,
PrefixMap<? extends CharSequence> prefixMap,
IntList sizes,
LongList offsets) |
| Modifier and Type | Method and Description |
|---|---|
InputBitStream |
getInputBitStream(int bufferSizeUnused)
Returns an input bit stream over the index.
|
ByteBufferInputStream |
getInputStream()
Returns an input stream over the index.
|
featureName, gaussianGolombModulus, getConstructor, getReader, golombModulus, quantumSigma, toStringdocuments, documents, documents, getEmptyIndexIterator, getEmptyIndexIterator, getEmptyIndexIterator, getEmptyIndexIterator, getInstance, getInstance, getInstance, getInstance, getInstance, getReader, getTermProcessor, keyIndexprotected final ByteBufferInputStream index
public MemoryMappedIndex(ByteBufferInputStream index, int numberOfDocuments, int numberOfTerms, long numberOfPostings, long numberOfOccurrences, int maxCount, Payload payload, CompressionFlags.Coding frequencyCoding, CompressionFlags.Coding pointerCoding, CompressionFlags.Coding countCoding, CompressionFlags.Coding positionCoding, int quantum, int height, TermProcessor termProcessor, String field, Properties properties, StringMap<? extends CharSequence> termMap, PrefixMap<? extends CharSequence> prefixMap, IntList sizes, LongList offsets)
public InputBitStream getInputBitStream(int bufferSizeUnused)
BitStreamIndexgetInputBitStream in class BitStreamIndexbufferSizeUnused - a suggested buffer size.public ByteBufferInputStream getInputStream()
BitStreamIndexgetInputStream in class BitStreamIndex