|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.postings.BasicPostingImpl
org.terrier.structures.postings.BasicIterablePosting
org.terrier.structures.postings.FieldIterablePosting
public class FieldIterablePosting
A posting iterator for field postings.
Posting,
IterablePosting,
FieldPosting,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.terrier.structures.postings.BasicIterablePosting |
|---|
bitFileReader, doi, numEntries |
| Fields inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
dl, id, tf |
| Fields inherited from interface org.terrier.structures.postings.IterablePosting |
|---|
EOL |
| Constructor Summary | |
|---|---|
FieldIterablePosting(BitIn fileReader,
int entries,
DocumentIndex _doi,
int _fieldCount)
constructor |
|
FieldIterablePosting(int _fieldCount)
contructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.terrier.structures.postings.BasicIterablePosting |
|---|
close, endOfPostings, getDocumentLength, next |
| Methods inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
getFrequency, getId, setDocumentLength, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.terrier.structures.postings.Posting |
|---|
getDocumentLength, getFrequency, getId, setId |
| Constructor Detail |
|---|
public FieldIterablePosting(int _fieldCount)
_fieldCount -
public FieldIterablePosting(BitIn fileReader,
int entries,
DocumentIndex _doi,
int _fieldCount)
throws IOException
fileReader - entries - _doi - _fieldCount -
IOException| Method Detail |
|---|
public int[] getFieldFrequencies()
getFieldFrequencies in interface FieldPosting
public int next()
throws IOException
next in interface IterablePostingnext in class BasicIterablePostingIOExceptionpublic void setFieldLengths(int[] fl)
setFieldLengths in interface FieldPostingpublic int[] getFieldLengths()
getFieldLengths in interface FieldPosting
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class BasicPostingImplIOException
public 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()
BasicPostingImpl
toString in class BasicPostingImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||