|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDeltaIndexingSession
The Interface IDeltaIndexingSession.
Method Summary | |
---|---|
boolean |
checkAndTouch(ConnectivityId id,
java.lang.String hash,
boolean isCompound)
this is a combination of #hasChanged(Id, String) and #touch(Id, String, boolean) in one step. |
void |
clear()
Clear all entries of the given sessionId. |
void |
commit()
Finish this delta indexing session and remove the lock. |
void |
delete(ConnectivityId id)
Delete. |
long |
deleteUntouchedIds()
Delete untouched ids. |
boolean |
hasChanged(ConnectivityId id,
java.lang.String hash)
checks if the hash of the current id is new or has changed (true) or not (false). |
void |
rollback()
rolls back changes that were made in the curreent session between init() and finish(), it should be called before finishing process. |
void |
touch(ConnectivityId id,
java.lang.String hash,
boolean isCompound)
Creates or updates the delta indexing entry. |
Method Detail |
---|
void clear() throws DeltaIndexingSessionException, DeltaIndexingException
DeltaIndexingSessionException
- if the sessionId is invalid
DeltaIndexingException
- the delta indexing exceptionvoid commit() throws DeltaIndexingSessionException, DeltaIndexingException
DeltaIndexingSessionException
- if the sessionId is invalid
DeltaIndexingException
- the delta indexing exceptionvoid delete(ConnectivityId id) throws DeltaIndexingSessionException, DeltaIndexingException
id
- the id
DeltaIndexingSessionException
- if the sessionId is invalid
DeltaIndexingException
- the delta indexing exceptionlong deleteUntouchedIds() throws DeltaIndexingSessionException, DeltaIndexingException
#delete(Id)
by the controller when iterating thru the ids, the
implementation may do so internally for all untouched ids in one go more efficiently.
DeltaIndexingSessionException
- the delta indexing session exception
DeltaIndexingException
- the delta indexing exceptionboolean hasChanged(ConnectivityId id, java.lang.String hash) throws DeltaIndexingSessionException, DeltaIndexingException
id
- the idhash
- the hash
DeltaIndexingSessionException
- the delta indexing session exception
DeltaIndexingException
- the delta indexing exceptionvoid rollback() throws DeltaIndexingSessionException, DeltaIndexingException
DeltaIndexingSessionException
- if the sessionId is invalid
DeltaIndexingException
- the delta indexing exceptionvoid touch(ConnectivityId id, java.lang.String hash, boolean isCompound) throws DeltaIndexingSessionException, DeltaIndexingException
id
- 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 exceptionboolean checkAndTouch(ConnectivityId id, java.lang.String hash, boolean isCompound) throws DeltaIndexingSessionException, DeltaIndexingException
#hasChanged(Id, String)
and #touch(Id, String, boolean)
in one step.
It has a perf. gain over calling the methods seperatly but has the drawback, that the record is always touched independently of an exception that occurs before putting the record into the Q. on the other hand, this matters not much as the subsequent processing may also cause errors which arent reflected in the "touch" state.
id
- the idhash
- the hashisCompound
- the is compound
DeltaIndexingSessionException
- the delta indexing session exception
DeltaIndexingException
- the delta indexing exception
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |