public class FieldIntegerCodingIterablePosting extends BasicIntegerCodingIterablePosting implements FieldPosting
| Modifier and Type | Field and Description |
|---|---|
protected FieldDocumentIndex |
asFieldDocumentIndex |
protected int[] |
fields |
protected IntegerCodec |
fieldsCodec |
protected int |
fieldsCount |
protected int[][] |
fieldsMatrix |
blkCnt, chunkSize, currentPosting, decompressed, documentIndex, id, ids, idsCodec, input, logger, numberOfEntries, tf, tfs, tfsCodecEOL| Constructor and Description |
|---|
FieldIntegerCodingIterablePosting(ByteIn input,
int numberOfEntries,
DocumentIndex documentIndex,
int chunkSize,
int fieldCount,
IntegerCodec idsCodec,
IntegerCodec tfsCodec,
IntegerCodec fieldsCodec) |
| Modifier and Type | Method and Description |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
protected void |
decompress()
This load the a chunk (tfs) and decompress it
|
protected void |
get(int pos)
Read the posting components from the chunk
|
int[] |
getFieldFrequencies()
Returns the frequencies of the term in each field of the document
|
int[] |
getFieldLengths()
Returns the lengths of the each fields in the current document
|
void |
setFieldLengths(int[] newLengths) |
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
|
close, endOfPostings, getCurrentAddress, getDocumentLength, getFrequency, getId, load, next, next, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDocumentLength, getFrequency, getId, setIdprotected int[] fields
protected final int[][] fieldsMatrix
protected final IntegerCodec fieldsCodec
protected final int fieldsCount
protected FieldDocumentIndex asFieldDocumentIndex
public FieldIntegerCodingIterablePosting(ByteIn input, int numberOfEntries, DocumentIndex documentIndex, int chunkSize, int fieldCount, IntegerCodec idsCodec, IntegerCodec tfsCodec, IntegerCodec fieldsCodec) throws IOException
IOExceptionpublic WritablePosting asWritablePosting()
PostingasWritablePosting in interface PostingasWritablePosting in class BasicIntegerCodingIterablePostingpublic int[] getFieldFrequencies()
FieldPostinggetFieldFrequencies in interface FieldPostingprotected void decompress()
throws IOException
BasicIntegerCodingIterablePostingdecompress in class BasicIntegerCodingIterablePostingIOExceptionprotected void skip()
throws IOException
BasicIntegerCodingIterablePostingskip in class BasicIntegerCodingIterablePostingIOExceptionprotected void get(int pos)
throws IOException
BasicIntegerCodingIterablePostingget in class BasicIntegerCodingIterablePostingpos - the posting to load (as index in the internal arrays)IOExceptionpublic int[] getFieldLengths()
FieldPostinggetFieldLengths in interface FieldPostingpublic void setFieldLengths(int[] newLengths)
setFieldLengths in interface FieldPostingpublic String toString()
toString in class BasicIntegerCodingIterablePostingTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow