org.terrier.structures.postings
Class BlockFieldORIterablePosting
java.lang.Object
org.terrier.structures.postings.IterablePostingImpl
org.terrier.structures.postings.ORIterablePosting
org.terrier.structures.postings.FieldORIterablePosting
org.terrier.structures.postings.BlockFieldORIterablePosting
- All Implemented Interfaces:
- Closeable, BlockPosting, FieldPosting, IterablePosting, Posting
public class BlockFieldORIterablePosting
- extends FieldORIterablePosting
- implements BlockPosting
ORIterablePosting implementation that implements FieldPosting and BlockPosting
- Since:
- 3.5
- Author:
- Craig Macdonald
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockFieldORIterablePosting
public BlockFieldORIterablePosting(IterablePosting[] ips)
throws IOException
- Constructs an instance of the BlockFieldORIterablePosting
- Parameters:
ips -
- Throws:
IOException
getPositions
public int[] getPositions()
- Description copied from interface:
BlockPosting
- Return positions of occurrences
- Specified by:
getPositions in interface BlockPosting
addPosting
protected void addPosting(Posting p)
- Overrides:
addPosting in class FieldORIterablePosting
firstPosting
protected void firstPosting(Posting p)
- Overrides:
firstPosting in class FieldORIterablePosting
asWritablePosting
public WritablePosting asWritablePosting()
- Description copied from class:
ORIterablePosting
- Copies this posting to one free of an iterator. Kind of like a clone.
- Specified by:
asWritablePosting in interface Posting- Overrides:
asWritablePosting in class FieldORIterablePosting
- Returns:
- an identical posting, but which can be maniulated free of this iterator
Terrier 3.6. Copyright © 2004-2011 University of Glasgow