public class MemoryFieldsIterablePosting extends MemoryIterablePosting implements FieldPosting
doi, index, pl_doc
EOL
Constructor and Description |
---|
MemoryFieldsIterablePosting(DocumentIndex docindex,
gnu.trove.TIntArrayList docids,
gnu.trove.TIntArrayList freqs,
gnu.trove.TIntObjectHashMap<int[]> fields)
Constructor (docid,freq,(fields)).
|
Modifier and Type | Method and Description |
---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
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) |
close, endOfPostings, getDocumentLength, getFrequency, getId, next, setId
next
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentLength, getFrequency, getId, setId
public MemoryFieldsIterablePosting(DocumentIndex docindex, gnu.trove.TIntArrayList docids, gnu.trove.TIntArrayList freqs, gnu.trove.TIntObjectHashMap<int[]> fields)
public int[] getFieldFrequencies()
getFieldFrequencies
in interface FieldPosting
public int[] getFieldLengths()
getFieldLengths
in interface FieldPosting
public void setFieldLengths(int[] newLengths)
setFieldLengths
in interface FieldPosting
public WritablePosting asWritablePosting()
asWritablePosting
in interface Posting
asWritablePosting
in class MemoryIterablePosting
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow