|
||||||||||
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
public abstract class EntryTypeInfo
Encapsulates the behavior of an entry of a given type.
Constructor Summary | |
---|---|
EntryTypeInfo()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryTypeInfo()
Method Detail |
---|
public static EntryTypeInfo getEntryTypeInfo(Storage.EntryType type, Storage storage)
type
- type to return Info object for
public 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 key
EQUAL 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |