|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.indexer.dictionary.LongNameHandler
public class LongNameHandler
Constructor Summary | |
---|---|
LongNameHandler()
|
Method Summary | |
---|---|
java.lang.Object |
decodeName(java.lang.Object prev,
ReadableBuffer b)
Decodes the long 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 long name of an entry, given the name of the previous entry in the dictionary. |
static int |
getShared(long i,
long j)
Finds the number of initial bytes shared by two longs. |
boolean |
startsWith(java.lang.Object n,
java.lang.Object m)
Determines whether one long starts with another, which is true only if they are equal! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongNameHandler()
Method Detail |
---|
public void encodeName(java.lang.Object prev, java.lang.Object curr, WriteableBuffer b)
encodeName
in interface NameEncoder
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.public java.lang.Object decodeName(java.lang.Object prev, ReadableBuffer b)
decodeName
in interface NameDecoder
prev
- The name of the previous entry in the dictionary.b
- The buffer onto which the name of the term should be
encoded.
public boolean startsWith(java.lang.Object n, java.lang.Object m)
startsWith
in interface NameDecoder
n
- The first name. We are checking to see if m
starts with n
.m
- The second name.
true
if m
starts with
n
, false otherwise.public static int getShared(long i, long j)
i
- One integer.j
- Another integer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |