|
||||||||||
| 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
org.terrier.structures.postings.BlockFieldPostingImpl
public class BlockFieldPostingImpl
A writable block field posting list
| Field Summary |
|---|
| Fields inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
dl, id, tf |
| Constructor Summary | |
|---|---|
BlockFieldPostingImpl()
default constructor |
|
BlockFieldPostingImpl(int docid,
int frequency,
int[] _positions,
int fieldCount)
constructor |
|
BlockFieldPostingImpl(int docid,
int frequency,
int[] _positions,
int[] _fieldFrequencies)
contructure |
|
| 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 |
void |
readFields(DataInput in)
Reads the a single posting (not an iterable posting - use BitPostingIndex for that) |
void |
setFieldLengths(int[] fl)
|
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.BlockPostingImpl |
|---|
getPositions |
| Methods inherited from class org.terrier.structures.postings.BasicPostingImpl |
|---|
getDocumentLength, 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 BlockFieldPostingImpl()
public BlockFieldPostingImpl(int docid,
int frequency,
int[] _positions,
int[] _fieldFrequencies)
docid - frequency - _positions - _fieldFrequencies -
public BlockFieldPostingImpl(int docid,
int frequency,
int[] _positions,
int fieldCount)
docid - frequency - _positions - fieldCount - | Method Detail |
|---|
public int[] getFieldFrequencies()
getFieldFrequencies in interface FieldPostingpublic int[] getFieldLengths()
getFieldLengths in interface FieldPostingpublic void setFieldLengths(int[] fl)
setFieldLengths in interface FieldPosting
public void readFields(DataInput in)
throws IOException
BlockPostingImpl
readFields in interface org.apache.hadoop.io.WritablereadFields in class BlockPostingImplIOException
public void write(DataOutput out)
throws IOException
BlockPostingImpl
write in interface org.apache.hadoop.io.Writablewrite in class BlockPostingImplIOExceptionpublic WritablePosting asWritablePosting()
asWritablePosting in interface PostingasWritablePosting in class BlockPostingImplpublic String toString()
toString in class BlockPostingImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||