public class FieldPostingInRun extends SimplePostingInRun
BitOut and it
represents a posting with field information (tf, df, [docid, tf, [tff]])| Modifier and Type | Class and Description |
|---|---|
protected class |
FieldPostingInRun.fPIRPostingIterator |
SimplePostingInRun.PIRPostingIterator| Modifier and Type | Field and Description |
|---|---|
protected int |
fieldTags
The number of different fields that are used for indexing field information.
|
protected int[] |
fieldTFs |
postingSource, term, termDf, termTF| Constructor and Description |
|---|
FieldPostingInRun(int _fieldTags)
Constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addTo(int[] target,
int[] additions) |
void |
addToLexiconEntry(LexiconEntry _le)
Add statistics for this posting onto the given LexiconEntry
|
int |
append(BitOut bos,
int last,
int runShift)
Writes the document data of this posting to a
BitOut
It encodes the data with the right compression methods. |
LexiconEntry |
getLexiconEntry()
Return the LexiconEntry for this Posting
|
IterablePosting |
getPostingIterator(int runShift)
Returns an IterablePosting object for the postings in this run
|
void |
setTerm(String term)
Setter for the term.
|
append, getDf, getTerm, getTF, setDf, setPostingSource, setTFprotected final int[] fieldTFs
protected final int fieldTags
public FieldPostingInRun(int _fieldTags)
public int append(BitOut bos, int last, int runShift) throws IOException
BitOut
It encodes the data with the right compression methods.
The stream is written as d1, idf(d1), fieldScore(d1) , d2 - d1, idf(d2), fieldScore(d2) etc.append in class SimplePostingInRunbos - BitOut to be written.last - int representing the last document written in this posting.runShift - amount of delta to apply to the first posting read.IOExceptionpublic LexiconEntry getLexiconEntry()
PostingInRungetLexiconEntry in class PostingInRunpublic void addToLexiconEntry(LexiconEntry _le)
PostingInRunaddToLexiconEntry in class PostingInRunprotected static void addTo(int[] target,
int[] additions)
public IterablePosting getPostingIterator(int runShift) throws IOException
PostingInRungetPostingIterator in class SimplePostingInRunIOExceptionpublic void setTerm(String term)
PostingInRunsetTerm in class PostingInRunterm - String containing the term for this posting list.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow