|
||||||||||
| 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.BlockFieldIterablePosting
public class BlockFieldIterablePosting
class BlockFieldIterablePosting
| Field Summary |
|---|
| Fields inherited from class org.terrier.structures.postings.BasicIterablePosting |
|---|
bitFileReader, doi, numEntries |
| Fields inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
id, tf |
| Fields inherited from interface org.terrier.structures.postings.IterablePosting |
|---|
EOL |
| Constructor Summary | |
|---|---|
BlockFieldIterablePosting(BitIn _bitFileReader,
int _numEntries,
DocumentIndex doi,
int _fieldCount)
Make a new posting iterator that is read from a BitIn stream. |
|
BlockFieldIterablePosting(int _fieldCount)
Make a new posting that can be loaded using Writable methods |
|
| Method Summary | |
|---|---|
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 |
int[] |
getPositions()
Return positions of occurrences |
int |
next()
Move this iterator to the next posting. |
void |
readFields(java.io.DataInput in)
Reads the a single posting (not an iterable posting - use BitPostingIndex for that) |
java.lang.String |
toString()
Makes a human readable form of this posting |
void |
write(java.io.DataOutput out)
Writes the current posting (not an iterable posting - use DirectInvertedOutputStream for that). |
| Methods inherited from class org.terrier.structures.postings.BasicIterablePosting |
|---|
close, endOfPostings, getDocumentLength, next |
| Methods inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
getFrequency, getId, 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 BlockFieldIterablePosting(int _fieldCount)
_fieldCount - number of fields to expect
public BlockFieldIterablePosting(BitIn _bitFileReader,
int _numEntries,
DocumentIndex doi,
int _fieldCount)
throws java.io.IOException
_bitFileReader - BitIn stream containing postings_numEntries - number of postings to read from streamdoi - DocumentIndex to read document and field lengths from_fieldCount - number of fields to expect
java.io.IOException| Method Detail |
|---|
public int next()
throws java.io.IOException
next in interface IterablePostingnext in class BasicIterablePostingjava.io.IOExceptionpublic int[] getPositions()
getPositions in interface BlockPostingpublic int[] getFieldFrequencies()
getFieldFrequencies in interface FieldPostingpublic int[] getFieldLengths()
getFieldLengths in interface FieldPosting
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class BasicPostingImpljava.io.IOException
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablewrite in class BasicPostingImpljava.io.IOExceptionpublic WritablePosting asWritablePosting()
asWritablePosting in interface PostingasWritablePosting in class BasicIterablePostingpublic java.lang.String toString()
toString in class BasicPostingImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||