com.timeindexing.index
Class DataHolderObject

java.lang.Object
  extended bycom.timeindexing.index.DataHolderObject
All Implemented Interfaces:
DataAbstraction, DataHolder

public class DataHolderObject
extends java.lang.Object
implements DataHolder

An implementations for objects that act as holders of data from an index.


Constructor Summary
DataHolderObject(java.nio.ByteBuffer buffer, long bufSize)
          Construct a new DataHolderObject
DataHolderObject(java.nio.ByteBuffer buffer, Size bufSize)
          Construct a new DataHolderObject
 
Method Summary
 java.nio.ByteBuffer getBytes()
          Get the bytes.
 Timestamp getLastAccessTime()
          Get the last time this object was accessed.
 Timestamp getReadTime()
          Get the time the data was read from storage into this object.
 Size getSize()
          Get the size of the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataHolderObject

public DataHolderObject(java.nio.ByteBuffer buffer,
                        Size bufSize)
Construct a new DataHolderObject


DataHolderObject

public DataHolderObject(java.nio.ByteBuffer buffer,
                        long bufSize)
Construct a new DataHolderObject

Method Detail

getBytes

public java.nio.ByteBuffer getBytes()
Get the bytes.

Specified by:
getBytes in interface DataHolder

getSize

public Size getSize()
Get the size of the data.

Specified by:
getSize in interface DataAbstraction

getLastAccessTime

public Timestamp getLastAccessTime()
Get the last time this object was accessed.

Specified by:
getLastAccessTime in interface DataHolder

getReadTime

public Timestamp getReadTime()
Get the time the data was read from storage into this object.

Specified by:
getReadTime in interface DataHolder