|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.DeviceLogIndex.Entry
protected static class DeviceLogIndex.Entry
This class provides a container for each indexing information entry. It is
not meant to be instantiated directly, but is utilized by the
DeviceLogIndex class.
| Field Summary | |
|---|---|
protected long |
_dataOffset
|
protected int |
_dataSize
|
protected int |
_entryIndex
|
protected long |
_key
|
protected long |
_sequenceNumber
|
protected static int |
LOG_INDEX_ENTRY_SIZE
|
| Constructor Summary | |
|---|---|
protected |
DeviceLogIndex.Entry()
default constructor |
protected |
DeviceLogIndex.Entry(DeviceLogIndex.Entry e)
|
protected |
DeviceLogIndex.Entry(long key,
int dataSize,
long dataOffset,
long sequenceNumber)
optional constructor |
| Method Summary | |
|---|---|
protected void |
fromFile(java.io.RandomAccessFile file)
deserializes this index entry from the index file |
protected long |
getDataOffset()
|
protected int |
getDataSize()
|
protected int |
getEntryIndex()
|
protected long |
getKey()
retrieves the key of this index entry |
protected long |
getSequenceNumber()
retrieves the sequenceNumber of this index entry |
protected void |
setDataOffset(long dataOffset)
sets the data region offset associated with this index entry |
protected void |
setDataSize(int dataSize)
sets the size of the data region associated with this index entry |
protected void |
setEntryIndex(int index)
sets the index number of this index entry |
protected void |
setKey(long key)
sets the key of this index entry |
protected void |
setSequenceNumber(long sequenceNumber)
sets the sequenceNumber of this index entry |
protected void |
toFile(java.io.RandomAccessFile file)
serializes this index entry and writes it to the index file |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int LOG_INDEX_ENTRY_SIZE
protected int _entryIndex
protected int _dataSize
protected long _dataOffset
protected long _key
protected long _sequenceNumber
| Constructor Detail |
|---|
protected DeviceLogIndex.Entry(long key,
int dataSize,
long dataOffset,
long sequenceNumber)
key - initial value of the key associated with this index entrydataSize - size of the data region associated with this entrydataOffset - offset of the data region associated with this entrysequenceNumber - sequenceNumber of the data region associated with this entryprotected DeviceLogIndex.Entry(DeviceLogIndex.Entry e)
protected DeviceLogIndex.Entry()
| Method Detail |
|---|
protected void setEntryIndex(int index)
index - index number to associate with this index entryprotected int getEntryIndex()
protected void setKey(long key)
key - key to associate with this index entryprotected long getKey()
protected void setDataSize(int dataSize)
dataSize - the size of the data region associated with this entryprotected int getDataSize()
protected void setDataOffset(long dataOffset)
dataOffset - offset of the data region associated with this entryprotected long getDataOffset()
protected void setSequenceNumber(long sequenceNumber)
sequenceNumber - sequenceNumber of this index entryprotected long getSequenceNumber()
protected void toFile(java.io.RandomAccessFile file)
file - RandomAccessFile to write index entry toprotected void fromFile(java.io.RandomAccessFile file)
file - RandomAccessFile to read index entry frompublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||