|
||||||||||
| 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.BlockIterablePosting
public class BlockIterablePosting
A writable block iterable posting list
| 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 | |
|---|---|
BlockIterablePosting()
Constructs an instance of the BlockIterablePosting. |
|
BlockIterablePosting(BitIn _bitFileReader,
int _numEntries,
DocumentIndex doi)
Constructs an instance of the BlockIterablePosting. |
|
| Method Summary | |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator. |
int[] |
getPositions()
Return positions of occurrences |
int |
next()
Move this iterator to the next posting. |
void |
readFields(DataInput in)
Reads the a single posting (not an iterable posting - use BitPostingIndex for that) |
String |
toString()
Makes a human readable form of this posting |
void |
write(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, 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 BlockIterablePosting()
public BlockIterablePosting(BitIn _bitFileReader,
int _numEntries,
DocumentIndex doi)
throws IOException
_bitFileReader - _numEntries - doi -
IOException| Method Detail |
|---|
public int next()
throws IOException
next in interface IterablePostingnext in class BasicIterablePostingIOExceptionpublic int[] getPositions()
getPositions in interface BlockPosting
public void readFields(DataInput in)
throws IOException
BasicPostingImpl
readFields in interface org.apache.hadoop.io.WritablereadFields in class BasicPostingImplIOException
public void write(DataOutput out)
throws IOException
BasicPostingImpl
write in interface org.apache.hadoop.io.Writablewrite in class BasicPostingImplIOExceptionpublic WritablePosting asWritablePosting()
BasicIterablePosting
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 | |||||||||