|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DeltaIndexingManager
The Interface DeltaIndexingManager. To start a processing session, call:
init(String)#checkForUpdate(String, Id, String) #visit(String, Id, String, boolean)#obsoleteIdIterator(String, Id)#delete(String, Id) themfinish(String)
http://wiki.eclipse.org/SMILA/Documentation/DeltaIndexingManager#Configuration,
http://wiki.eclipse.org/SMILA/Specifications/DeltaIndexingAndConnectivtyDiscussion09| Nested Class Summary | |
|---|---|
static class |
DeltaIndexingManager.LockState
An enumeration defining the lock states a data source in the DeltaIndexingManager. |
| Method Summary | |
|---|---|
boolean |
checkForUpdate(java.lang.String sessionId,
ConnectivityId id,
java.lang.String hash)
checks if the hash of the current id is new or has changed (true) or not (false). // to reduce method calls mark entry as visited on return value false |
void |
clear()
Clears all entries of the DeltaIndexingManager including any active sessions! |
void |
clear(java.lang.String sessionId)
Clear all entries for the given sessionId. |
void |
delete(java.lang.String sessionId,
ConnectivityId id)
Delete. |
boolean |
exists(java.lang.String dataSourceId)
Checks if the entries for the given dataSourceId exist. |
void |
finish(java.lang.String sessionId)
Finish this delta indexing session and remove the lock. |
long |
getEntryCount(java.lang.String dataSourceID)
Get the number of delta indexing entries for the given dataSourceID. |
java.util.Map<java.lang.String,java.lang.Long> |
getEntryCounts()
Get the number of delta indexing entries for all data sources. |
java.util.Map<java.lang.String,DeltaIndexingManager.LockState> |
getLockStates()
Get an overview what data sources are locked or unlocked. |
java.lang.String |
init(java.lang.String dataSourceID)
Initializes the internal state for an import of a dataSourceID and creates a session wherein it establishes a lock to avoid that the same. dataSourceID is initialized multiple times concurrently. |
java.util.Iterator<ConnectivityId> |
obsoleteIdIterator(java.lang.String sessionId,
ConnectivityId id)
Obsolete id iterator for id fragments of compounds. |
java.util.Iterator<ConnectivityId> |
obsoleteIdIterator(java.lang.String sessionId,
java.lang.String dataSourceID)
Obsolete id iterator. |
void |
rollback(java.lang.String sessionId)
rolls back changes that were made in the current session between init() and finish(), it should be called before finishing process. |
void |
unlockDatasource(java.lang.String dataSourceID)
Unlock the given data source and removes the sessions. |
void |
unlockDatasources()
Unlock all data sources and removes all sessions. |
void |
visit(java.lang.String sessionId,
ConnectivityId id,
java.lang.String hash,
boolean isCompound)
Creates or updates the delta indexing entry. this is THE method to make the record known to DI. |
| Method Detail |
|---|
java.lang.String init(java.lang.String dataSourceID)
throws DeltaIndexingException
dataSourceID - dataSourceID
DeltaIndexingException - the delta indexing exception
boolean checkForUpdate(java.lang.String sessionId,
ConnectivityId id,
java.lang.String hash)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing sessionid - the idhash - the hash
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
void visit(java.lang.String sessionId,
ConnectivityId id,
java.lang.String hash,
boolean isCompound)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing sessionid - the idhash - the hashisCompound - boolean flag if the record identified by id is a compound record (true) or not (false)
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
java.util.Iterator<ConnectivityId> obsoleteIdIterator(java.lang.String sessionId,
java.lang.String dataSourceID)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing sessiondataSourceID - the data source id
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
java.util.Iterator<ConnectivityId> obsoleteIdIterator(java.lang.String sessionId,
ConnectivityId id)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing sessionid - the id
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
void clear(java.lang.String sessionId)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing session
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
void rollback(java.lang.String sessionId)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing session
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
void delete(java.lang.String sessionId,
ConnectivityId id)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing sessionid - the id
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
void finish(java.lang.String sessionId)
throws DeltaIndexingSessionException,
DeltaIndexingException
sessionId - the id of the delta indexing session
DeltaIndexingSessionException - if the sessionId is invalid
DeltaIndexingException - the delta indexing exception
void clear()
throws DeltaIndexingException
DeltaIndexingException - the delta indexing exception
void unlockDatasource(java.lang.String dataSourceID)
throws DeltaIndexingException
dataSourceID - the data source id
DeltaIndexingException - the delta indexing exception
void unlockDatasources()
throws DeltaIndexingException
DeltaIndexingException - the delta indexing exceptionjava.util.Map<java.lang.String,DeltaIndexingManager.LockState> getLockStates()
boolean exists(java.lang.String dataSourceId)
dataSourceId - the data source id
long getEntryCount(java.lang.String dataSourceID)
dataSourceID - the data source id
java.util.Map<java.lang.String,java.lang.Long> getEntryCounts()
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||