com.sun.labs.minion.indexer.dictionary
Class DateNameHandler

java.lang.Object
  extended by com.sun.labs.minion.indexer.dictionary.LongNameHandler
      extended by com.sun.labs.minion.indexer.dictionary.DateNameHandler
All Implemented Interfaces:
NameDecoder, NameEncoder

public class DateNameHandler
extends LongNameHandler


Constructor Summary
DateNameHandler()
           
 
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.
 void encodeName(java.lang.Object prev, java.lang.Object curr, WriteableBuffer b)
          Encodes the name of an entry, given the name of the previous entry in the dictionary.
 
Methods inherited from class com.sun.labs.minion.indexer.dictionary.LongNameHandler
getShared, startsWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateNameHandler

public DateNameHandler()
Method Detail

encodeName

public void encodeName(java.lang.Object prev,
                       java.lang.Object curr,
                       WriteableBuffer b)
Encodes the name of an entry, given the name of the previous entry in the dictionary.

Specified by:
encodeName in interface NameEncoder
Overrides:
encodeName in class LongNameHandler
Parameters:
prev - The name of the previous entry in the dictionary.
curr - The name of the entry to encode.
b - The buffer onto which the name of the term should be encoded.

decodeName

public 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.

Specified by:
decodeName in interface NameDecoder
Overrides:
decodeName in class LongNameHandler
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.