com.sun.labs.minion.indexer.postings
Interface PosPostingsIterator

All Superinterfaces:
PostingsIterator
All Known Implementing Classes:
DFOPostings.DFOIterator

public interface PosPostingsIterator
extends PostingsIterator

An interface for postings iterators that can return positions associated with IDs.


Method Summary
 int[][] getPositions()
          Returns the positions associated with the current ID.
 
Methods inherited from interface com.sun.labs.minion.indexer.postings.PostingsIterator
compareTo, findID, get, get, get, getFeatures, getFreq, getID, getN, getWeight, next, reset
 

Method Detail

getPositions

int[][] getPositions()
Returns the positions associated with the current ID. The positions are divided by field.

Returns:
A two-dimensional array of int. The contents of the ith element of the array are the positions for the field whose ID is i. The positions stored at element 0 are those positions that are not in any named field. For each of the sub-arrays, the zeroth element of the array gives the number of word positions in that field.