public class FieldIterablePosting extends BasicIterablePosting implements FieldPosting
Posting
,
IterablePosting
,
FieldPosting
,
Serialized FormbitFileReader, doi, numEntries
dl, id, tf
END_OF_LIST, EOL
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, next
getFrequency, getId, setDocumentLength, setId, setTf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDocumentLength, getFrequency, getId, setId
public FieldIterablePosting(int _fieldCount)
_fieldCount
- public FieldIterablePosting(BitIn fileReader, int entries, DocumentIndex _doi, int _fieldCount) throws IOException
fileReader
- entries
- _doi
- _fieldCount
- IOException
public int[] getFieldFrequencies()
getFieldFrequencies
in interface FieldPosting
public int next() throws IOException
next
in interface IterablePosting
next
in class BasicIterablePosting
IOException
public void setFieldLengths(int[] fl)
setFieldLengths
in interface FieldPosting
public int[] getFieldLengths()
getFieldLengths
in interface FieldPosting
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class BasicPostingImpl
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class BasicPostingImpl
IOException
public WritablePosting asWritablePosting()
asWritablePosting
in interface Posting
asWritablePosting
in class BasicIterablePosting
public String toString()
BasicPostingImpl
toString
in class BasicIterablePosting
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow