public class MOFIDInfo extends EntryTypeInfo
| Modifier and Type | Method and Description |
|---|---|
byte |
compare(byte[] key,
byte[] buffer,
int offset,
int targetLength)
Compares two MOFIDs byte-by-byte.
|
java.lang.Object |
fromBuffer(byte[] buffer)
Create an object from the contents of the byte array.
|
int |
getLength()
Returns the length of an item of this type, or 0 if variable length.
|
boolean |
isFixedLength()
Returns true if this is a fixed length type, otherwise returns false;
|
java.lang.Object |
objectFromBuffer(byte[] buffer,
SinglevaluedIndex repos)
Like fromBuffer, except that if this type is a key, returns object
associated with the key
|
byte[] |
toBuffer(java.lang.Object object)
Store the value of the object in a byte array.
|
java.lang.String |
typeName()
Returns the name of this type as a String.
|
getEntryTypeInfopublic java.lang.String typeName()
EntryTypeInfotypeName in class EntryTypeInfopublic byte compare(byte[] key,
byte[] buffer,
int offset,
int targetLength)
compare in class EntryTypeInfokey - byte array containing search keybuffer - buffer containing target keyoffset - offset into buffer of target keylength - should always be MOFID.LENGTHEQUAL if the two keys are equal
GREATER if search key is greater than target key
LESS if search key is less than target key
public int getLength()
EntryTypeInfogetLength in class EntryTypeInfopublic boolean isFixedLength()
EntryTypeInfoisFixedLength in class EntryTypeInfopublic byte[] toBuffer(java.lang.Object object)
EntryTypeInfotoBuffer in class EntryTypeInfopublic java.lang.Object fromBuffer(byte[] buffer)
EntryTypeInfofromBuffer in class EntryTypeInfopublic java.lang.Object objectFromBuffer(byte[] buffer,
SinglevaluedIndex repos)
EntryTypeInfoobjectFromBuffer in class EntryTypeInfoCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.