com.sun.labs.minion.indexer.entry
Interface CasedPostingsEntry

All Known Implementing Classes:
CasedDFOEntry, CasedEntry, CasedIDEntry, MPCasedDFOEntry

public interface CasedPostingsEntry

An interface that can be implemented by entries that store postings for case sensitive and case insensitive terms. This can be used, for example, when building bigram dictionaries.


Method Summary
 void addCaseInsensitive(Occurrence o)
          Adds an occurrence to our case insensitive postings.
 void addCaseSensitive(Occurrence o)
          Adds an occurrence to our case sensitive postings.
 Entry getCaseInsensitiveEntry()
          Gets the case insensitive entry for this entry.
 Postings getCaseInsensitivePostings()
          Gets the postings that are case insenstive.
 Postings getCaseSensitivePostings()
          Gets the postings that are case sensitive.
 boolean nameOccurred()
          Tells us whether the name for this entry occurred in the indexed material.
 void setCaseInsensitiveEntry(IndexEntry e)
          Sets the case insensitive entry for this entry.
 

Method Detail

setCaseInsensitiveEntry

void setCaseInsensitiveEntry(IndexEntry e)
Sets the case insensitive entry for this entry.

Parameters:
e - the case insensitive entry associated with this entry

getCaseInsensitiveEntry

Entry getCaseInsensitiveEntry()
Gets the case insensitive entry for this entry.

Returns:
the case insensitive entry for this entry

addCaseSensitive

void addCaseSensitive(Occurrence o)
Adds an occurrence to our case sensitive postings.

Parameters:
o - the occurrence to add to our postings

addCaseInsensitive

void addCaseInsensitive(Occurrence o)
Adds an occurrence to our case insensitive postings.

Parameters:
o - the occurrence which we're adding to our postings

getCaseSensitivePostings

Postings getCaseSensitivePostings()
Gets the postings that are case sensitive.

Returns:
the postings associated with the case sensitive entry

getCaseInsensitivePostings

Postings getCaseInsensitivePostings()
Gets the postings that are case insenstive.

Returns:
the postings associated with the case insensitive entry

nameOccurred

boolean nameOccurred()
Tells us whether the name for this entry occurred in the indexed material. The name of an entry may not have occcurred if, for example, only the cased variant of a term occurs in the indexed material.

Returns:
true if the name of this entry actually occurred in the indexed material, false otherwise.