|
||||||||||
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.StringInfo
public class StringInfo
EntryTypeInfo implementation for type String
Constructor Summary | |
---|---|
StringInfo()
|
Method Summary | |
---|---|
byte |
compare(byte[] key1buffer,
byte[] key2buffer,
int offset,
int length)
Compare two items of this type which are stored in byte arrays. |
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; |
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, objectFromBuffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringInfo()
Method Detail |
---|
public java.lang.String typeName()
EntryTypeInfo
typeName
in class EntryTypeInfo
public byte[] toBuffer(java.lang.Object object)
EntryTypeInfo
toBuffer
in class EntryTypeInfo
public java.lang.Object fromBuffer(byte[] buffer)
EntryTypeInfo
fromBuffer
in class EntryTypeInfo
public byte compare(byte[] key1buffer, byte[] key2buffer, int offset, int length)
EntryTypeInfo
compare
in class EntryTypeInfo
offset
- offset into key2 of target keylength
- length in key2 of target key
EQUAL if the two keys are equal
GREATER if key greater than key2
LESS if key less than key2
public int getLength()
EntryTypeInfo
getLength
in class EntryTypeInfo
public boolean isFixedLength()
EntryTypeInfo
isFixedLength
in class EntryTypeInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |