public abstract class BitStreamHPIndex extends BitStreamIndex
Implementing subclasses must provide access to the index bitstream (as it
happens for a BitStreamIndex) but also to the positions stream,
both at byte and bit level.
The standard readers associated with an instance of this class are of type BitStreamHPIndexReader.
Nonetheless, it is possible to generate automatically sources for wired classes that
work only for a particular set of codings and flags. The wired classes will be fetched
automagically by reflection, if available. Please read the section about performance in the MG4J manual.
BitStreamIndex.PropertyKeysIndex.EmptyIndexIterator, Index.UriKeysbufferSize, 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 |
|---|
BitStreamHPIndex(long numberOfDocuments,
long 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,
int bufferSize,
TermProcessor termProcessor,
String field,
Properties properties,
StringMap<? extends CharSequence> termMap,
PrefixMap<? extends CharSequence> prefixMap,
IntBigList sizes,
LongBigList offsets) |
| Modifier and Type | Method and Description |
|---|---|
protected Constructor<? extends IndexReader> |
getConstructor() |
abstract InputBitStream |
getPositionsInputBitStream(int bufferSize)
Returns an input bit stream over the index.
|
abstract InputStream |
getPositionsInputStream()
Returns an input stream over the index.
|
IndexReader |
getReader(int bufferSize)
Creates and returns a new
IndexReader based on this index. |
featureName, gaussianGolombModulus, getInputBitStream, getInputStream, golombModulus, quantumSigma, toStringdocuments, documents, documents, getEmptyIndexIterator, getEmptyIndexIterator, getEmptyIndexIterator, getEmptyIndexIterator, getInstance, getInstance, getInstance, getInstance, getInstance, getReader, getTermProcessor, keyIndexpublic BitStreamHPIndex(long numberOfDocuments,
long 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,
int bufferSize,
TermProcessor termProcessor,
String field,
Properties properties,
StringMap<? extends CharSequence> termMap,
PrefixMap<? extends CharSequence> prefixMap,
IntBigList sizes,
LongBigList offsets)
protected Constructor<? extends IndexReader> getConstructor()
getConstructor in class BitStreamIndexpublic abstract InputBitStream getPositionsInputBitStream(int bufferSize) throws IOException
bufferSize - a suggested buffer size.IOExceptionpublic abstract InputStream getPositionsInputStream() throws IOException
IOExceptionpublic IndexReader getReader(int bufferSize) throws IOException
IndexIndexReader based on this index. After that, you
can use the reader to read this index.getReader in class BitStreamIndexbufferSize - the size of the buffer to be used accessing the reader, or -1
for a default buffer size.IndexReader to read this index.IOException