public class FieldIterablePosting extends BasicIterablePosting implements FieldPosting
Posting, 
IterablePosting, 
FieldPosting, 
Serialized FormbitFileReader, doi, numEntriesdl, id, tfEOL| Constructor and Description | 
|---|
| FieldIterablePosting(BitIn fileReader,
                    int entries,
                    DocumentIndex _doi,
                    int _fieldCount)constructor | 
| FieldIterablePosting(int _fieldCount)contructor | 
| Modifier and Type | Method and Description | 
|---|---|
| WritablePosting | asWritablePosting()Get this posting as a WritablePosting | 
| 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 | 
| int | next()Move this iterator to the next posting. | 
| void | readFields(DataInput in)Read this posting from specified inputstream | 
| void | setFieldLengths(int[] fl). | 
| String | toString()Makes a human readable form of this posting | 
| void | write(DataOutput out)Write this posting to specified outputstream | 
close, endOfPostings, getDocumentLength, nextgetFrequency, getId, setDocumentLength, setId, setTfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDocumentLength, getFrequency, getId, setIdpublic FieldIterablePosting(int _fieldCount)
_fieldCount - public FieldIterablePosting(BitIn fileReader, int entries, DocumentIndex _doi, int _fieldCount) throws IOException
fileReader - entries - _doi - _fieldCount - IOExceptionpublic int[] getFieldFrequencies()
getFieldFrequencies in interface FieldPostingpublic int next()
         throws IOException
next in interface IterablePostingnext in class BasicIterablePostingIOExceptionpublic void setFieldLengths(int[] fl)
setFieldLengths in interface FieldPostingpublic int[] getFieldLengths()
getFieldLengths in interface FieldPostingpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class BasicPostingImplIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class BasicPostingImplIOExceptionpublic WritablePosting asWritablePosting()
asWritablePosting in interface PostingasWritablePosting in class BasicIterablePostingpublic String toString()
BasicPostingImpltoString in class BasicPostingImplTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow