|
||||||||||
| 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.BlockPostingImpl
public class BlockPostingImpl
BlockPostingImpl class
| Field Summary |
|---|
| Fields inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
id, tf |
| Constructor Summary | |
|---|---|
BlockPostingImpl()
empty constructor for Writable implementation |
|
BlockPostingImpl(int docid,
int frequency,
int[] _positions)
constructor |
|
| Method Summary | |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator. |
int[] |
getPositions()
Return positions of occurrences |
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.BasicPostingImpl |
|---|
getDocumentLength, 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 BlockPostingImpl()
public BlockPostingImpl(int docid,
int frequency,
int[] _positions)
docid - frequency - _positions - | Method Detail |
|---|
public int[] getPositions()
getPositions in interface BlockPosting
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 BasicPostingImplpublic java.lang.String toString()
toString in class BasicPostingImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||