|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Index
An index. This is the generic interface to an index. It has all the methods for the header and for all the data requests.
| Method Summary | |
|---|---|
Index |
activate()
Make the Index activated. |
boolean |
addDataType(ID typeID,
java.lang.String typeName)
Add a new data type |
IndexItem |
addItem(DataItem item)
Add a Data Item to the Index. |
IndexItem |
addItem(DataItem item,
Timestamp dataTime)
Add a Data Item to the Index with a speicifed Data Timestamp |
IndexItem |
addItem(DataItem item,
Timestamp dataTime,
long annotation)
Add a Data Item to the Index with a speicifed Data Timestamp and some annotation data |
IndexItem |
addReference(IndexItem item,
Index other)
Add a Reference to an IndexItem in a Index. |
IndexItem |
addReference(IndexItem item,
Index other,
Timestamp dataTime)
Add a Reference to an IndexItem in a Index. |
IndexItem |
addReference(IndexItem item,
Index other,
Timestamp dataTime,
long annotation)
Add a Reference to an IndexItem in a Index. |
DoubleLinkedList |
apply(Function fn)
Apply a function to all of the IndexItems, resulting in a List of results. |
IndexView |
asView()
Get a view onto the Index. |
boolean |
close()
Close the index. |
boolean |
commit()
Commit all changes to the index. |
boolean |
contains(Timestamp t)
Does a timestamp fall within the bounds of the Index. |
boolean |
contains(Timestamp t,
IndexTimestampSelector sel)
Does a timestamp fall within the bounds of the Index. |
IndexView |
filter(Function f)
Filter some IndexItems out into a new IncoreIndex. |
int |
getAnnotationStyle()
Get the annotation style. |
CachePolicy |
getCachePolicy()
Get the CachePolicy |
java.lang.String |
getDataType(ID typeID)
Get the type name of the things in the data stream. |
IndexItem |
getItem(long n)
Get an Index Item from the Index. |
IndexItem |
getItem(Position p)
Get an Index Item from the Index. |
IndexItem |
getItem(Timestamp t)
Get an Index Item from the Index. |
IndexItem |
getItem(Timestamp t,
IndexTimestampSelector sel,
Lifetime lifetime)
Get an Index Item from the Index. |
int |
getItemSize()
Get the size of the index items. |
Timestamp |
getLastAccessTime()
Get the last time an IndexItem was accessed from the index. |
boolean |
getLoadDataAutomatically()
Does the index load data automatically when doing a get item. |
boolean |
hasAnnotations()
Does this index have annotations. |
boolean |
hasDataType(java.lang.String typeName)
Does this index have a typed name. |
boolean |
isActivated()
Is the Index activated. |
boolean |
isChanged()
Has the index changed in any way. |
boolean |
isClosed()
Is the Index closed. |
boolean |
isWriteLocked()
Has the Index been write-locked. |
java.util.Iterator |
iterator()
Get an iterator over the IndexItems in the Index. |
TimestampMapping |
locate(Position p)
Try and determine the Timestamp associated with the speicifed Position. |
TimestampMapping |
locate(Position p,
IndexTimestampSelector sel,
Lifetime lifetime)
Try and determine the Timestamp associated with the speicifed Position. |
TimestampMapping |
locate(Timestamp t)
Try and determine the position associated with the speicifed Timestamp. |
TimestampMapping |
locate(Timestamp t,
IndexTimestampSelector sel,
Lifetime lifetime)
Try and determine the position associated with the speicifed Timestamp. |
IndexView |
map(Function f)
Map a function to all of the IndexItems, resulting in a new IncoreIndex. |
IndexView |
select(AbsoluteTimestamp t,
IntervalSpecifier intervalSpecifier)
Select an Interval given a Timestamp and an IntervalSpecifier. |
IndexView |
select(AbsoluteTimestamp t,
IntervalSpecifier intervalSpecifier,
IndexTimestampSelector selector,
Overlap overlap,
Lifetime lifetime)
Select an Interval given a Timestamp and an IntervalSpecifier. |
IndexView |
select(Interval interval)
Select an Interval given an Interval object. |
IndexView |
select(Interval interval,
IndexTimestampSelector selector,
Overlap overlap,
Lifetime lifetime)
Select an Interval given an Interval object. |
boolean |
setAutoCommit(boolean commit)
Set auto commit to be true or false. |
CachePolicy |
setCachePolicy(CachePolicy policy)
Set a CachePolicy in order to manage the cache. |
boolean |
setLoadDataAutomatically(boolean load)
Load data automatically when doing a get item. |
Index |
terminate()
Make the Index finalized. |
Index |
updateDescription(Description description)
Update the description of this index. |
| Methods inherited from interface com.timeindexing.index.IndexHeader |
|---|
getDataPathName, getDataSize, getDescription, getEndTime, getFirstDataTime, getFirstTime, getID, getIndexDataType, getIndexPathName, getIndexType, getLastDataTime, getLastTime, getLength, getName, getStartTime, getURI, isFixedSizeData, isInTimeOrder, isReadOnly, isTerminated |
| Method Detail |
|---|
int getItemSize()
java.lang.String getDataType(ID typeID)
boolean hasDataType(java.lang.String typeName)
boolean addDataType(ID typeID,
java.lang.String typeName)
boolean hasAnnotations()
int getAnnotationStyle()
Index updateDescription(Description description)
IndexItem addItem(DataItem item)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
IndexItem addItem(DataItem item,
Timestamp dataTime)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
IndexItem addItem(DataItem item,
Timestamp dataTime,
long annotation)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
IndexItem addReference(IndexItem item,
Index other)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
IndexItem addReference(IndexItem item,
Index other,
Timestamp dataTime)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
IndexItem addReference(IndexItem item,
Index other,
Timestamp dataTime,
long annotation)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
IndexItem getItem(long n)
throws GetItemException,
IndexClosedException
GetItemException
IndexClosedException
IndexItem getItem(Position p)
throws GetItemException,
IndexClosedException
GetItemException
IndexClosedException
IndexItem getItem(Timestamp t)
throws GetItemException,
IndexClosedException
GetItemException
IndexClosedException
IndexItem getItem(Timestamp t,
IndexTimestampSelector sel,
Lifetime lifetime)
throws GetItemException,
IndexClosedException
GetItemException
IndexClosedExceptionboolean contains(Timestamp t)
boolean contains(Timestamp t,
IndexTimestampSelector sel)
TimestampMapping locate(Timestamp t)
TimestampMapping locate(Timestamp t,
IndexTimestampSelector sel,
Lifetime lifetime)
TimestampMapping locate(Position p)
TimestampMapping locate(Position p,
IndexTimestampSelector sel,
Lifetime lifetime)
IndexView select(Interval interval)
IndexView select(AbsoluteTimestamp t,
IntervalSpecifier intervalSpecifier)
IndexView select(Interval interval,
IndexTimestampSelector selector,
Overlap overlap,
Lifetime lifetime)
IndexView select(AbsoluteTimestamp t,
IntervalSpecifier intervalSpecifier,
IndexTimestampSelector selector,
Overlap overlap,
Lifetime lifetime)
IndexView filter(Function f)
throws TimeIndexException
TimeIndexException
IndexView map(Function f)
throws TimeIndexException
TimeIndexException
DoubleLinkedList apply(Function fn)
throws TimeIndexException
TimeIndexExceptionTimestamp getLastAccessTime()
boolean isActivated()
Index activate()
throws IndexReadOnlyException,
IndexWriteLockedException
IndexReadOnlyException
IndexWriteLockedExceptionIndex terminate()
boolean commit()
throws IndexCommitException
IndexCommitExceptionboolean setAutoCommit(boolean commit)
boolean isClosed()
boolean close()
throws IndexCloseException
IndexCloseExceptionboolean isChanged()
boolean isWriteLocked()
java.util.Iterator iterator()
IndexView asView()
CachePolicy getCachePolicy()
CachePolicy setCachePolicy(CachePolicy policy)
boolean getLoadDataAutomatically()
boolean setLoadDataAutomatically(boolean load)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||