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, tfsCodec
END_OF_LIST, EOL
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, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDocumentLength, getFrequency, getId, setId
protected 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
IOException
public WritablePosting asWritablePosting()
Posting
asWritablePosting
in interface Posting
asWritablePosting
in class BasicIntegerCodingIterablePosting
public int[] getFieldFrequencies()
FieldPosting
getFieldFrequencies
in interface FieldPosting
protected void decompress() throws IOException
BasicIntegerCodingIterablePosting
decompress
in class BasicIntegerCodingIterablePosting
IOException
protected void skip() throws IOException
BasicIntegerCodingIterablePosting
skip
in class BasicIntegerCodingIterablePosting
IOException
protected void get(int pos) throws IOException
BasicIntegerCodingIterablePosting
get
in class BasicIntegerCodingIterablePosting
pos
- the posting to load (as index in the internal arrays)IOException
public int[] getFieldLengths()
FieldPosting
getFieldLengths
in interface FieldPosting
public void setFieldLengths(int[] newLengths)
setFieldLengths
in interface FieldPosting
public String toString()
toString
in class BasicIntegerCodingIterablePosting
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow