Package org.terrier.realtime.multi
Class BlockMultiDirectIterablePosting
- java.lang.Object
-
- org.terrier.realtime.multi.MultiDirectIterablePosting
-
- org.terrier.realtime.multi.BlockMultiDirectIterablePosting
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,BlockPosting
,IterablePosting
,Posting
public class BlockMultiDirectIterablePosting extends MultiDirectIterablePosting implements BlockPosting
-
-
Field Summary
-
Fields inherited from interface org.terrier.structures.postings.IterablePosting
END_OF_LIST, EOL
-
-
Constructor Summary
Constructors Constructor Description BlockMultiDirectIterablePosting(IterablePosting posting, MultiLexicon lex, int shard)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WritablePosting
asWritablePosting()
Copy this posting to one free of an iterator.int[]
getPositions()
Return the positions of occurrences of the term in the current document.-
Methods inherited from class org.terrier.realtime.multi.MultiDirectIterablePosting
close, endOfPostings, getDocumentLength, getFrequency, getId, next, next, of
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.terrier.structures.postings.Posting
getDocumentLength, getFrequency, getId, setId
-
-
-
-
Constructor Detail
-
BlockMultiDirectIterablePosting
public BlockMultiDirectIterablePosting(IterablePosting posting, MultiLexicon lex, int shard)
-
-
Method Detail
-
getPositions
public int[] getPositions()
Description copied from interface:BlockPosting
Return the positions of occurrences of the term in the current document.- Specified by:
getPositions
in interfaceBlockPosting
- Returns:
- the positions of occurrences of the term in the current document.
-
asWritablePosting
public WritablePosting asWritablePosting()
Description copied from interface:Posting
Copy this posting to one free of an iterator. Kind of like a clone.- Specified by:
asWritablePosting
in interfacePosting
- Overrides:
asWritablePosting
in classMultiDirectIterablePosting
- Returns:
- an identical posting, but which can be manipulated free of this iterator
-
-