com.timeindexing.index
Interface ManagedFileIndexItem

All Superinterfaces:
IndexItem, ManagedIndexItem
All Known Implementing Classes:
FileIndexItem

public interface ManagedFileIndexItem
extends ManagedIndexItem

An interface for classes that need to manage IndexItems that reside in an Index file. It has the methods needed to manage an item from a file, but are not needed by the application layer.


Method Summary
 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 item for this index item.
 
Methods inherited from interface com.timeindexing.index.ManagedIndexItem
getDataAbstraction, setIndex, setLastAccessTime, setPosition
 
Methods inherited from interface com.timeindexing.index.IndexItem
follow, getAnnotations, getData, getDataSize, getDataTimestamp, getDataType, getIndex, getIndexTimestamp, getItemID, getLastAccessTime, getPosition, isReference
 

Method Detail

hasData

public boolean hasData()
Does this IndexItem actually hold the data.


setData

public ManagedFileIndexItem setData(DataAbstraction data)
Set the data to be a new DataAbstraction.


getIndexOffset

public Offset getIndexOffset()
Get the file offset for the index for this index item.


setIndexOffset

public ManagedFileIndexItem setIndexOffset(Offset offset)
Set the file offset for the index item for this index item.


getDataOffset

public Offset getDataOffset()
Get the file offset for the data for this index item.


setDataOffset

public ManagedFileIndexItem setDataOffset(Offset offset)
Set the file offset for the data for this index item.