|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.neurosdbm.db.MDBRecord
Field Summary | |
protected java.util.ArrayList |
accessKeyArrayList
|
private int |
countedLength
|
protected boolean |
deleted
|
protected java.util.ArrayList |
extraInfoArrayList
|
protected int |
key
|
protected WordString |
primary
|
private int |
recordLength
|
Constructor Summary | |
protected |
MDBRecord(int key)
|
|
MDBRecord(int key,
java.nio.ByteBuffer bytes,
int wordOffset,
int numAccessKeys,
int numExtraInfo)
|
Method Summary | |
private int |
computeRecordLength()
Computes the length of this record in bytes. |
(package private) abstract void |
generatePointers()
|
(package private) int |
getCountedLength()
This function returns the counted length of this record (the actual size in bytes of the record on disk when read.) This value is only valid if the MDBRecord has been loaded from disk. |
(package private) int |
getKey()
|
WordString |
getPrimary()
|
(package private) int |
getRecordLength()
Returns the length of this record (in bytes.) Record lenghts are computed lazily, and are only computed when needed (a generatePointers by controling MDB file.) |
(package private) void |
invalidateRecordLength()
This function invalidates the computed record length. |
java.lang.String |
toString()
|
(package private) void |
write(NIOFile file)
This function writes this record to the end of of the passed in NIOFile. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int recordLength
private int countedLength
protected boolean deleted
protected WordString primary
protected java.util.ArrayList accessKeyArrayList
protected java.util.ArrayList extraInfoArrayList
protected int key
Constructor Detail |
protected MDBRecord(int key)
public MDBRecord(int key, java.nio.ByteBuffer bytes, int wordOffset, int numAccessKeys, int numExtraInfo)
Method Detail |
abstract void generatePointers()
int getCountedLength()
void invalidateRecordLength()
int getRecordLength()
private int computeRecordLength()
void write(NIOFile file) throws java.io.IOException, DatabaseInternalCorruptionException
java.io.IOException
DatabaseInternalCorruptionException
int getKey()
public java.lang.String toString()
public WordString getPrimary()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |