public class BlockIntegerCodingIterablePosting extends BasicIntegerCodingIterablePosting implements BlockPosting
| Modifier and Type | Field and Description |
|---|---|
protected int |
bf |
protected int[] |
bfs |
protected int[] |
blocks |
protected IntegerCodec |
blocksCodec |
protected int[] |
blocksMatrix |
protected int |
hasBlocks |
blkCnt, chunkSize, currentPosting, decompressed, documentIndex, id, ids, idsCodec, input, logger, numberOfEntries, tf, tfs, tfsCodecEOL| Constructor and Description |
|---|
BlockIntegerCodingIterablePosting(ByteIn input,
int numberOfEntries,
DocumentIndex documentIndex,
int chunkSize,
int hasBlocks,
IntegerCodec idsCodec,
IntegerCodec tfsCodec,
IntegerCodec blocksCodec) |
| Modifier and Type | Method and Description |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
void |
close() |
protected void |
decompress()
This load the a chunk (tfs, fields and blocks (optionally)) and decompress it
|
protected void |
get(int pos)
Read the posting components from the chunk
|
long |
getCurrentAddress() |
int[] |
getPositions()
Return positions of occurrences
|
protected void |
skip()
If tfs, fields frequencies and blocks are not required, skip that
part of the chunk
|
String |
toString()
Makes a human readable form of this posting
|
endOfPostings, getDocumentLength, getFrequency, getId, load, next, next, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDocumentLength, getFrequency, getId, setIdprotected int bf
protected int[] blocks
protected int[] bfs
protected int[] blocksMatrix
protected final IntegerCodec blocksCodec
protected final int hasBlocks
public BlockIntegerCodingIterablePosting(ByteIn input, int numberOfEntries, DocumentIndex documentIndex, int chunkSize, int hasBlocks, IntegerCodec idsCodec, IntegerCodec tfsCodec, IntegerCodec blocksCodec) throws IOException
input - the input channelnumberOfEntries - the number of postingsdocumentIndex - the document indexchunkSize - the size of the chunkhasBlocks - has this posting list posting positions? (0: no, 1:has positions, >1:has blocks)idsCodec - the IntegerCodec to use to decode docIdstfsCodec - the IntegerCodec to use to decode term frequenciesblocksCodec - the IntegerCodec to use to decode blocks (if any, null otherwise)IOExceptionpublic WritablePosting asWritablePosting()
PostingasWritablePosting in interface PostingasWritablePosting in class BasicIntegerCodingIterablePostingpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BasicIntegerCodingIterablePostingIOExceptionprotected final void decompress()
throws IOException
decompress in class BasicIntegerCodingIterablePostingIOExceptionprotected final void skip()
throws IOException
skip in class BasicIntegerCodingIterablePostingIOExceptionprotected final void get(int pos)
throws IOException
get in class BasicIntegerCodingIterablePostingpos - the posting to load (as index in the internal arrays)IOExceptionpublic int[] getPositions()
BlockPostinggetPositions in interface BlockPostingpublic String toString()
toString in class BasicIntegerCodingIterablePostingpublic long getCurrentAddress()
getCurrentAddress in class BasicIntegerCodingIterablePostingTerrier 4.0. Copyright © 2004-2014 University of Glasgow