org.terrier.structures.postings
Interface FieldPosting

All Superinterfaces:
Posting
All Known Implementing Classes:
BlockFieldIterablePosting, BlockFieldORIterablePosting, BlockFieldPostingImpl, BlockFieldPostingInRun.bfPIRPostingIterator, FieldIterablePosting, FieldORIterablePosting, FieldPostingImpl, FieldPostingInRun.fPIRPostingIterator

public interface FieldPosting
extends Posting

Interface implemented by Posting objects that have field information recorded. Position information can be obtained from the getFieldFrequencies() method. Typically, getFieldLengths() involves a call to the DocumentIndex.

Since:
3.0
Author:
Craig Macdonald

Method Summary
 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
 
Methods inherited from interface org.terrier.structures.postings.Posting
asWritablePosting, getDocumentLength, getFrequency, getId, setId
 

Method Detail

getFieldFrequencies

int[] getFieldFrequencies()
Returns the frequencies of the term in each field of the document


getFieldLengths

int[] getFieldLengths()
Returns the lengths of the each fields in the current document



Terrier 3.5. Copyright © 2004-2011 University of Glasgow