|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IndexerEventHandler represents an event handler for Indexer-specific events. It is used by Indexers to manage adding and removing data.
Indexer
Method Summary | |
void |
onDocumentAdded(Key key)
onDocumentAdded method is called after document is added and all its elements are processed. |
void |
onDocumentDeleted(Key key)
onDocumentDeleted method is called after document is deleted and all its elements are processed. |
void |
onNameAdded(IndexPattern pattern,
Key key,
short elemID,
short attrID)
onNameAdded called for every element/attribute in the document being added that matches any of the Indexer pattern. |
void |
onNameDeleted(IndexPattern pattern,
Key key,
short elemID,
short attrID)
onNameDeleted called for every element/attribute in the document being deleted that matches any of the Indexer pattern. |
void |
onValueAdded(IndexPattern pattern,
String value,
Key key,
int pos,
int len,
short elemID,
short attrID)
onValueAdded called for every element/attribute in the document being added that matches any of the Indexer pattern. |
void |
onValueDeleted(IndexPattern pattern,
String value,
Key key,
int pos,
int len,
short elemID,
short attrID)
onValueDeleted called for every element/attribute in the document being deleted that matches any of the Indexer pattern. |
Method Detail |
public void onDocumentAdded(Key key) throws DBException
key
- Document key
DBException
public void onDocumentDeleted(Key key) throws DBException
key
- Document key
DBException
public void onNameAdded(IndexPattern pattern, Key key, short elemID, short attrID) throws DBException
pattern
- Indexer pattern that matches the element/attributekey
- Document keyelemID
- Element ID that matches the patternattrID
- Attribute ID that matches the pattern
DBException
public void onNameDeleted(IndexPattern pattern, Key key, short elemID, short attrID) throws DBException
pattern
- Indexer pattern that matches the element/attributekey
- Document keyelemID
- Element ID that matches the patternattrID
- Attribute ID that matches the pattern
DBException
public void onValueAdded(IndexPattern pattern, String value, Key key, int pos, int len, short elemID, short attrID) throws DBException
pattern
- Indexer pattern that matches the element/attributevalue
- Element/attribute value to addkey
- Document keypos
- The offset into the stream the Element occurs atlen
- The length of the substream for the ElementelemID
- Element ID that matches the patternattrID
- Attribute ID that matches the pattern
DBException
public void onValueDeleted(IndexPattern pattern, String value, Key key, int pos, int len, short elemID, short attrID) throws DBException
pattern
- Indexer pattern that matches the element/attributevalue
- Element/attribute value to deletekey
- Document keypos
- The offset into the stream the Element occurs atlen
- The length of the substream for the ElementelemID
- Element ID that matches the patternattrID
- Attribute ID that matches the pattern
DBException
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |