|
||||||||||
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. |
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, flush, 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, contains, flush, getAnnotationStyle, getDataType, getItem, getItem, getItem, getItemSize, getLastAccessTime, hasAnnotations, hasDataType, isActivated, isChanged, isClosed, iterator, locate, 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 ManagedIndex
IndexSpecificationException
IndexOpenException
public boolean create(java.util.Properties properties) throws IndexSpecificationException, IndexCreateException
create
in interface ManagedIndex
IndexSpecificationException
IndexCreateException
public Timestamp getLastFlushTime()
getLastFlushTime
in interface ExtendedIndex
public Position getLastFlushPosition()
getLastFlushPosition
in interface ExtendedIndex
public Offset getFirstOffset()
getFirstOffset
in interface ExtendedIndex
public Offset getLastOffset()
getLastOffset
in interface ExtendedIndex
public Index activate() throws IndexReadOnlyException, IndexWriteLockedException
activate
in interface Index
IndexReadOnlyException
IndexWriteLockedException
public boolean isWriteLocked()
isWriteLocked
in interface Index
public long addItem(DataItem dataitem) throws IndexTerminatedException, IndexClosedException, IndexActivationException, AddItemException
addItem
in interface Index
addItem
in class AbstractIndex
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addItem(DataItem dataitem, Timestamp dataTS) throws IndexTerminatedException, IndexClosedException, IndexActivationException, AddItemException
addItem
in interface Index
addItem
in class AbstractIndex
dataTS
- 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 Index
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addReference(IndexItem otherItem, Index otherIndex, Timestamp dataTS) throws IndexTerminatedException, IndexClosedException, IndexActivationException, AddItemException
addReference
in interface Index
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public long addReference(IndexReference reference, Timestamp dataTS) throws IndexTerminatedException, IndexClosedException, IndexActivationException, AddItemException
addReference
in interface ManagedIndex
IndexTerminatedException
IndexClosedException
IndexActivationException
AddItemException
public boolean reallyClose()
reallyClose
in interface ManagedIndex
reallyClose
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 |