|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.index.IncoreIndexItem
com.timeindexing.index.FileIndexItem
An implementatio of an IndexItem that is saved in a file. Every value is explicitly held.
Constructor Summary | |
FileIndexItem(Timestamp dataTS,
Timestamp indexTS,
DataAbstraction data,
DataType type,
ID id,
ID annotationID)
Construct a FileIndexItem from |
|
FileIndexItem(Timestamp dataTS,
Timestamp indexTS,
DataAbstraction data,
Size size,
DataType type,
ID id,
ID annotationID)
Construct a FileIndexItem from |
|
FileIndexItem(Timestamp dataTS,
Timestamp indexTS,
DataItem dataitem,
DataType type,
ID id,
ID annotationID)
Construct a FileIndexItem from |
Method Summary | |
java.nio.ByteBuffer |
getData()
A ByteBuffer of the Data being indexed. |
DataAbstraction |
getDataAbstraction()
Get the DataAbstraction held by the IndexItem. |
Offset |
getDataOffset()
Get the file offset for the data for this index item. |
Offset |
getIndexOffset()
Get the file offset for the index for this index item. |
boolean |
hasData()
Does this IndexItem actually hold the data. |
ManagedFileIndexItem |
setData(DataAbstraction data)
Set the data to be a new DataAbstraction. |
ManagedFileIndexItem |
setDataOffset(Offset offset)
Set the file offset for the data for this index item. |
ManagedFileIndexItem |
setIndexOffset(Offset offset)
Set the file offset for the index for this index item. |
Methods inherited from class com.timeindexing.index.IncoreIndexItem |
follow, getAnnotations, getDataSize, getDataTimestamp, getDataType, getIndex, getIndexTimestamp, getItemID, getLastAccessTime, getPosition, isReference, setIndex, setLastAccessTime, setPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.timeindexing.index.IndexItem |
follow, getAnnotations, getDataSize, getDataTimestamp, getDataType, getIndex, getIndexTimestamp, getItemID, getLastAccessTime, getPosition, isReference |
Methods inherited from interface com.timeindexing.index.ManagedIndexItem |
setIndex, setLastAccessTime, setPosition |
Constructor Detail |
public FileIndexItem(Timestamp dataTS, Timestamp indexTS, DataItem dataitem, DataType type, ID id, ID annotationID)
dataTS
- a data timestamp. The Data timestamp is the same as the Sender timestamp.indexTS
- an index timestamp. The Index timestamp is the same as the Receiver timestamp.type
- the type of the dataid
- an index IDannotationID
- an ID for annotationspublic FileIndexItem(Timestamp dataTS, Timestamp indexTS, DataAbstraction data, DataType type, ID id, ID annotationID)
dataTS
- a data timestamp. The Data timestamp is the same as the Sender timestamp.indexTS
- an index timestamp. The Index timestamp is the same as the Receiver timestamp.data
- some data as a DataAbstractiontype
- the type of the dataid
- an index IDannotationID
- a ID for annotationspublic FileIndexItem(Timestamp dataTS, Timestamp indexTS, DataAbstraction data, Size size, DataType type, ID id, ID annotationID)
dataTS
- a data timestamp. The Data timestamp is the same as the Sender timestamp.indexTS
- an index timestamp. The Index timestamp is the same as the Receiver timestamp.data
- some data as a DataAbstractionsize
- the size of the DataAbstractiontype
- the type of the dataid
- an index IDannotationID
- a ID for annotationsMethod Detail |
public java.nio.ByteBuffer getData()
getData
in interface IndexItem
getData
in class IncoreIndexItem
public boolean hasData()
hasData
in interface ManagedFileIndexItem
public DataAbstraction getDataAbstraction()
getDataAbstraction
in interface ManagedIndexItem
getDataAbstraction
in class IncoreIndexItem
public ManagedFileIndexItem setData(DataAbstraction data)
setData
in interface ManagedFileIndexItem
public Offset getIndexOffset()
getIndexOffset
in interface ManagedFileIndexItem
public ManagedFileIndexItem setIndexOffset(Offset offset)
setIndexOffset
in interface ManagedFileIndexItem
public Offset getDataOffset()
getDataOffset
in interface ManagedFileIndexItem
public ManagedFileIndexItem setDataOffset(Offset offset)
setDataOffset
in interface ManagedFileIndexItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |