com.sun.labs.minion.indexer.dictionary
Interface NameDecoder

All Known Implementing Classes:
DateNameHandler, DoubleNameHandler, LongNameHandler, StringNameHandler

public interface NameDecoder

An interface for decoding the names of entries stored in dictionaries.


Method Summary
 java.lang.Object decodeName(java.lang.Object prev, ReadableBuffer b)
          Decodes the name of an entry, given a buffer of encoded names and the name of the previous entry in the dictionary.
 boolean startsWith(java.lang.Object n, java.lang.Object m)
          Determines whether the second name starts with the first name.
 

Method Detail

decodeName

java.lang.Object decodeName(java.lang.Object prev,
                            ReadableBuffer b)
Decodes the name of an entry, given a buffer of encoded names and the name of the previous entry in the dictionary.

Parameters:
prev - The name of the previous entry in the dictionary.
b - The buffer onto which the name of the term should be encoded.
Returns:
The decoded name.

startsWith

boolean startsWith(java.lang.Object n,
                   java.lang.Object m)
Determines whether the second name starts with the first name.

Parameters:
n - The first name. We are checking to see if m starts with n.
m - The second name.
Returns:
true if m starts with n, false otherwise.