public abstract class EntryTypeInfo
extends java.lang.Object
| Constructor and Description |
|---|
EntryTypeInfo() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte |
compare(byte[] key,
byte[] key2,
int offset,
int length)
Compare two items of this type which are stored in byte arrays.
|
abstract java.lang.Object |
fromBuffer(byte[] buffer)
Create an object from the contents of the byte array.
|
static EntryTypeInfo |
getEntryTypeInfo(Storage.EntryType type,
Storage storage)
Returns an IntInfo, MOFIDInfo, or StringInfo.
|
abstract int |
getLength()
Returns the length of an item of this type, or 0 if variable length.
|
abstract 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
|
abstract byte[] |
toBuffer(java.lang.Object object)
Store the value of the object in a byte array.
|
abstract java.lang.String |
typeName()
Returns the name of this type as a String.
|
public static EntryTypeInfo getEntryTypeInfo(Storage.EntryType type, Storage storage)
type - type to return Info object forpublic abstract byte[] toBuffer(java.lang.Object object)
object - public abstract java.lang.Object fromBuffer(byte[] buffer)
buffer - public java.lang.Object objectFromBuffer(byte[] buffer,
SinglevaluedIndex repos)
buffer - public abstract byte compare(byte[] key,
byte[] key2,
int offset,
int length)
key - key2 - offset - 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 abstract int getLength()
public abstract boolean isFixedLength()
public abstract java.lang.String typeName()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.