public class StringInfo extends EntryTypeInfo
| Constructor and Description |
|---|
StringInfo() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getEntryTypeInfo, objectFromBufferpublic java.lang.String typeName()
EntryTypeInfotypeName in class EntryTypeInfopublic byte[] toBuffer(java.lang.Object object)
EntryTypeInfotoBuffer in class EntryTypeInfopublic java.lang.Object fromBuffer(byte[] buffer)
EntryTypeInfofromBuffer in class EntryTypeInfopublic byte compare(byte[] key1buffer,
byte[] key2buffer,
int offset,
int length)
EntryTypeInfocompare in class EntryTypeInfooffset - offset into key2 of target keylength - length in key2 of target keyEQUAL if the two keys are equal
GREATER if key greater than key2
LESS if key less than key2
public int getLength()
EntryTypeInfogetLength in class EntryTypeInfopublic boolean isFixedLength()
EntryTypeInfoisFixedLength in class EntryTypeInfoCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.