public class BlockIterablePosting extends BasicIterablePosting implements BlockPosting
bitFileReader, doi, numEntriesdl, id, tfEOL| Constructor and Description |
|---|
BlockIterablePosting()
Constructs an instance of the BlockIterablePosting.
|
BlockIterablePosting(BitIn _bitFileReader,
int _numEntries,
DocumentIndex doi)
Constructs an instance of the BlockIterablePosting.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
close, endOfPostings, getDocumentLength, nextgetFrequency, getId, setDocumentLength, setId, setTfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDocumentLength, getFrequency, getId, setIdpublic BlockIterablePosting()
public BlockIterablePosting(BitIn _bitFileReader, int _numEntries, DocumentIndex doi) throws IOException
_bitFileReader - _numEntries - doi - IOExceptionpublic int next()
throws IOException
next in interface IterablePostingnext in class BasicIterablePostingIOExceptionpublic int[] getPositions()
getPositions in interface BlockPostingpublic void readFields(DataInput in) throws IOException
BasicPostingImplreadFields in interface org.apache.hadoop.io.WritablereadFields in class BasicPostingImplIOExceptionpublic void write(DataOutput out) throws IOException
BasicPostingImplwrite in interface org.apache.hadoop.io.Writablewrite in class BasicPostingImplIOExceptionpublic WritablePosting asWritablePosting()
BasicIterablePostingasWritablePosting in interface PostingasWritablePosting in class BasicIterablePostingpublic String toString()
BasicPostingImpltoString in class BasicPostingImplTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow