public class MemoryFieldsIterablePosting extends MemoryIterablePosting implements FieldPosting
doi, index, pl_docEOL| 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, setIdnextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentLength, getFrequency, getId, setIdpublic MemoryFieldsIterablePosting(DocumentIndex docindex, gnu.trove.TIntArrayList docids, gnu.trove.TIntArrayList freqs, gnu.trove.TIntObjectHashMap<int[]> fields)
public int[] getFieldFrequencies()
getFieldFrequencies in interface FieldPostingpublic int[] getFieldLengths()
getFieldLengths in interface FieldPostingpublic void setFieldLengths(int[] newLengths)
setFieldLengths in interface FieldPostingpublic WritablePosting asWritablePosting()
asWritablePosting in interface PostingasWritablePosting in class MemoryIterablePostingTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow