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

All Superinterfaces:
Occurrence
All Known Implementing Classes:
Token

public interface FieldOccurrence
extends Occurrence

A interface for occurrence data that takes into account the fields and the position where the occurrence was found.


Method Summary
 int[] getFields()
          Gets the fields that are active at the time of the occurrence.
 int getPos()
          Gets the position at which the occurrence was found.
 
Methods inherited from interface com.sun.labs.minion.indexer.postings.Occurrence
getCount, getID, setCount, setID
 

Method Detail

getPos

int getPos()
Gets the position at which the occurrence was found.

Returns:
the position where the occurrence was found.

getFields

int[] getFields()
Gets the fields that are active at the time of the occurrence.

Returns:
an array that is as long as the number of defined fields. The ith element of this array indicates the current position in the field whose ID is i. If element 0 of this array is greater than zero, then no fields are currently active.