|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.timeindexing.index.AbstractIndex
com.timeindexing.index.AbstractManagedIndex
com.timeindexing.index.IncoreIndex
An implementation of an incore Index object. It represents the index header, the index stream and the data stream.
| Constructor Summary | |
IncoreIndex()
Create an IncoreIndex |
|
| Method Summary | |
Index |
activate()
Make the Index activated. |
long |
addItem(DataItem dataitem)
Add a Data Item to the Index. |
long |
addItem(DataItem dataitem,
Timestamp dataTS)
Add a Data Item to the Index plus a Timestamp from the Data. |
long |
addReference(IndexItem item,
Index other)
Add a Referemnce to an IndexItem in a Index. |
long |
addReference(IndexItem otherItem,
Index otherIndex,
Timestamp dataTS)
Add a Referemnce to an IndexItem in a Index. |
long |
addReference(IndexReference reference,
Timestamp dataTS)
Add a Referemnce to an IndexItem in a Index. |
protected void |
checkCreateProperties(java.util.Properties indexProperties)
|
protected void |
checkOpenProperties(java.util.Properties indexProperties)
Check that all the properties needed to open are passed in. |
boolean |
create(java.util.Properties properties)
Create this index. |
java.net.URI |
generateURI(java.lang.String name)
Construct a URI from a name |
Offset |
getFirstOffset()
Get the Offset of the fisrt item. |
IndexItem |
getItem(long n)
Get an Index Item from the Index. |
Position |
getLastFlushPosition()
Get the IndexItem Position when the index was last flushed. |
Timestamp |
getLastFlushTime()
Get the last time the index was flushed. |
Offset |
getLastOffset()
Get the Offset of the last item. |
protected void |
init()
Initialize the object. |
boolean |
isWriteLocked()
Has the Index been write-locked. |
boolean |
open(java.util.Properties properties)
Open this index. |
boolean |
reallyClose()
Close this index. |
| Methods inherited from class com.timeindexing.index.AbstractManagedIndex |
addIndexURI, asView, close, getAllOptions, getHeader, getIndexURI, getOption, getTrackedIndex, hasIndexURI, hasOption, isOpen, isTrackingIndex, listOptions, listTrackedIndexes, notInTimeOrder, setDataPathName, setDataSize, setDescription, setEndTime, setFirstDataTime, setFirstOffset, setFirstTime, setID, setIndexDataType, setIndexPathName, setIndexType, setItemSize, setLastDataTime, setLastOffset, setLastTime, setLength, setName, setOption, setOptions, setReadOnly, setStartTime, setTerminated, setURI, syncHeader, trackReferencedIndex |
| 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.ManagedIndex |
getHeader, getTrackedIndex, isTrackingIndex, listTrackedIndexes, trackReferencedIndex |
| Methods inherited from interface com.timeindexing.index.ExtendedIndex |
getIndexType |
| Methods inherited from interface com.timeindexing.index.Index |
addDataType, asView, close, commit, contains, getAnnotationStyle, getDataType, getItem, getItem, getItemSize, getLastAccessTime, hasAnnotations, hasDataType, isActivated, isChanged, isClosed, iterator, locate, locate, setAutoCommit, setCachePolicy, terminate, updateDescription |
| Methods inherited from interface com.timeindexing.index.IndexHeader |
getDataPathName, getDataSize, getDescription, getEndTime, getFirstDataTime, getFirstTime, getID, getIndexDataType, getIndexPathName, getLastDataTime, getLastTime, getLength, getName, getStartTime, getURI, isFixedSizeData, isInTimeOrder, isReadOnly, isTerminated |
| Methods inherited from interface com.timeindexing.index.ExtendedIndexHeader |
addDataType, addIndexURI, getAnnotationStyle, getDataSize, getDataType, getIndexURI, getItemSize, hasAnnotations, hasDataType, hasIndexURI |
| Methods inherited from interface com.timeindexing.index.ManagedIndexHeader |
addIndexURI, getAllOptions, getIndexURI, getOption, hasIndexURI, hasOption, listOptions, notInTimeOrder, setDataPathName, setDataSize, setDescription, setEndTime, setFirstDataTime, setFirstOffset, setFirstTime, setID, setIndexDataType, setIndexPathName, setIndexType, setItemSize, setLastDataTime, setLastOffset, setLastTime, setLength, setName, setOption, setOptions, setReadOnly, setStartTime, setTerminated, setURI, syncHeader |
| Methods inherited from interface com.timeindexing.event.IndexEventGenerator |
addAccessEventListener, addAddEventListener, addPrimaryEventListener, removeAccessEventListener, removeAddEventListener, removePrimaryEventListener |
| Constructor Detail |
public IncoreIndex()
| Method Detail |
protected void init()
public boolean open(java.util.Properties properties)
throws IndexSpecificationException,
IndexOpenException
open in interface ManagedIndexIndexSpecificationException
IndexOpenException
public boolean create(java.util.Properties properties)
throws IndexSpecificationException,
IndexCreateException
create in interface ManagedIndexIndexSpecificationException
IndexCreateExceptionpublic Timestamp getLastFlushTime()
getLastFlushTime in interface ExtendedIndexpublic Position getLastFlushPosition()
getLastFlushPosition in interface ExtendedIndexpublic Offset getFirstOffset()
getFirstOffset in interface ExtendedIndexpublic Offset getLastOffset()
getLastOffset in interface ExtendedIndex
public Index activate()
throws IndexReadOnlyException,
IndexWriteLockedException
activate in interface IndexIndexReadOnlyException
IndexWriteLockedExceptionpublic boolean isWriteLocked()
isWriteLocked in interface Index
public long addItem(DataItem dataitem)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
addItem in interface IndexaddItem in class AbstractIndexIndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addItem(DataItem dataitem,
Timestamp dataTS)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
addItem in interface IndexaddItem in class AbstractIndexdataTS - the Timestamp for the data, null implies that
the data Timestamp is the same as the record Timestamp
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addReference(IndexItem item,
Index other)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
addReference in interface IndexIndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addReference(IndexItem otherItem,
Index otherIndex,
Timestamp dataTS)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
addReference in interface IndexIndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addReference(IndexReference reference,
Timestamp dataTS)
throws IndexTerminatedException,
IndexClosedException,
IndexActivationException,
AddItemException
addReference in interface ManagedIndexIndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public IndexItem getItem(long n)
throws GetItemException
getItem in interface IndexgetItem in class AbstractIndexGetItemExceptionpublic boolean reallyClose()
reallyClose in interface ManagedIndexreallyClose in class AbstractManagedIndex
protected void checkOpenProperties(java.util.Properties indexProperties)
throws IndexSpecificationException
IndexSpecificationException
protected void checkCreateProperties(java.util.Properties indexProperties)
throws IndexSpecificationException
IndexSpecificationException
public java.net.URI generateURI(java.lang.String name)
throws java.net.URISyntaxException
java.net.URISyntaxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||