org.terrier.structures.postings
Class BlockORIterablePosting

java.lang.Object
  extended by org.terrier.structures.postings.IterablePostingImpl
      extended by org.terrier.structures.postings.ORIterablePosting
          extended by org.terrier.structures.postings.BlockORIterablePosting
All Implemented Interfaces:
java.io.Closeable, BlockPosting, IterablePosting, Posting

public class BlockORIterablePosting
extends ORIterablePosting
implements BlockPosting

ORIterablePosting implementation that implements BlockPosting

Since:
3.5
Author:
Craig Macdonald

Field Summary
 
Fields inherited from interface org.terrier.structures.postings.IterablePosting
EOL
 
Constructor Summary
BlockORIterablePosting(IterablePosting[] ips)
          Construct an intance of the BlockORIterablePosting.
 
Method Summary
protected  void addPosting(Posting p)
           
 WritablePosting asWritablePosting()
          Copies this posting to one free of an iterator.
protected  void firstPosting(Posting p)
           
 int[] getPositions()
          Return positions of occurrences
 
Methods inherited from class org.terrier.structures.postings.ORIterablePosting
close, endOfPostings, getDocumentLength, getFrequency, getId, mergePostings, next, setId
 
Methods inherited from class org.terrier.structures.postings.IterablePostingImpl
next
 
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

BlockORIterablePosting

public BlockORIterablePosting(IterablePosting[] ips)
                       throws java.io.IOException
Construct an intance of the BlockORIterablePosting.

Parameters:
ips -
Throws:
java.io.IOException
Method Detail

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 ORIterablePosting

firstPosting

protected void firstPosting(Posting p)
Overrides:
firstPosting in class ORIterablePosting

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 ORIterablePosting
Returns:
an identical posting, but which can be maniulated free of this iterator


Terrier 3.5. Copyright © 2004-2011 University of Glasgow