org.terrier.structures.indexing.singlepass
Class BlockFieldPostingInRun.bfPIRPostingIterator

java.lang.Object
  extended by org.terrier.structures.postings.IterablePostingImpl
      extended by org.terrier.structures.indexing.singlepass.SimplePostingInRun.PIRPostingIterator
          extended by org.terrier.structures.indexing.singlepass.BlockFieldPostingInRun.bfPIRPostingIterator
All Implemented Interfaces:
java.io.Closeable, BlockPosting, FieldPosting, IterablePosting, Posting
Enclosing class:
BlockFieldPostingInRun

protected class BlockFieldPostingInRun.bfPIRPostingIterator
extends SimplePostingInRun.PIRPostingIterator
implements FieldPosting, BlockPosting


Field Summary
protected  int blockFreq
           
protected  int[] blockIds
           
protected  int[] fieldFrequencies
           
 
Fields inherited from interface org.terrier.structures.postings.IterablePosting
EOL
 
Constructor Summary
BlockFieldPostingInRun.bfPIRPostingIterator(int runShift)
           
 
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
 int[] getPositions()
          Return positions of occurrences
protected  void readPostingNotDocid()
           
 
Methods inherited from class org.terrier.structures.indexing.singlepass.SimplePostingInRun.PIRPostingIterator
close, endOfPostings, getDocumentLength, getFrequency, getId, 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
 

Field Detail

fieldFrequencies

protected int[] fieldFrequencies

blockFreq

protected int blockFreq

blockIds

protected int[] blockIds
Constructor Detail

BlockFieldPostingInRun.bfPIRPostingIterator

public BlockFieldPostingInRun.bfPIRPostingIterator(int runShift)
Method Detail

getFieldFrequencies

public int[] getFieldFrequencies()
Description copied from interface: FieldPosting
Returns the frequencies of the term in each field of the document

Specified by:
getFieldFrequencies in interface FieldPosting

getFieldLengths

public int[] getFieldLengths()
Description copied from interface: FieldPosting
Returns the lengths of the each fields in the current document

Specified by:
getFieldLengths in interface FieldPosting

readPostingNotDocid

protected void readPostingNotDocid()
                            throws java.io.IOException
Overrides:
readPostingNotDocid in class SimplePostingInRun.PIRPostingIterator
Throws:
java.io.IOException

getPositions

public int[] getPositions()
Description copied from interface: BlockPosting
Return positions of occurrences

Specified by:
getPositions in interface BlockPosting

asWritablePosting

public WritablePosting asWritablePosting()
Description copied from interface: Posting
Copies this posting to one free of an iterator. Kind of like a clone.

Specified by:
asWritablePosting in interface Posting
Overrides:
asWritablePosting in class SimplePostingInRun.PIRPostingIterator
Returns:
an identical posting, but which can be maniulated free of this iterator


Terrier 3.5. Copyright © 2004-2011 University of Glasgow