|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.mdr.persistence.btreeimpl.btreeindex.EntryTypeInfo
org.netbeans.mdr.persistence.btreeimpl.btreeindex.MOFIDInfo
EntryTypeInfo implementation for type MOFID
Method Summary | |
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. |
Methods inherited from class org.netbeans.mdr.persistence.btreeimpl.btreeindex.EntryTypeInfo |
getEntryTypeInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String typeName()
EntryTypeInfo
typeName
in class EntryTypeInfo
public byte compare(byte[] key, byte[] buffer, int offset, int targetLength)
compare
in class EntryTypeInfo
key
- byte array containing search keybuffer
- buffer containing target keyoffset
- offset into buffer of target keytargetLength
- length in key2 of target key
EQUAL 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()
EntryTypeInfo
getLength
in class EntryTypeInfo
public boolean isFixedLength()
EntryTypeInfo
isFixedLength
in class EntryTypeInfo
public byte[] toBuffer(java.lang.Object object)
EntryTypeInfo
toBuffer
in class EntryTypeInfo
object
-
public java.lang.Object fromBuffer(byte[] buffer)
EntryTypeInfo
fromBuffer
in class EntryTypeInfo
buffer
-
public java.lang.Object objectFromBuffer(byte[] buffer, SinglevaluedIndex repos)
EntryTypeInfo
objectFromBuffer
in class EntryTypeInfo
buffer
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |