@NotThreadSafe public static interface IndexChangeSetListeners.MultiColumnIndexOperations
start(String, boolean)
for each of the set of changes; if this method returns false
, then no other
methods will be called for that set of changes.
add(NodeKey, Property[])
, change(NodeKey, Property[], Property[])
, and
remove(NodeKey)
that reflect each of the changes in the set of changes for the workspace identified in
start(String, boolean)
end()
to signal that all of the changes in the change set have been processed.start(String, boolean)
to be called and return true
, but for end()
to be
called immediately after that. In such cases, no indexed properties were changed in the set of changes.Modifier and Type | Method and Description |
---|---|
void |
add(NodeKey nodeKey,
Property[] newProperties)
Record the addition of the indexed properties on a node.
|
void |
change(NodeKey nodeKey,
Property[] newProperties,
Property[] oldProperties)
Record the change in the indexed properties for the given node.
|
void |
end()
Signal the end of the set of changes for the workspace identified in the previous
start(String, boolean) call
that returned true. |
void |
remove(NodeKey nodeKey)
Record the removal of the node or the indexed properties.
|
boolean |
start(String workspaceName,
boolean local)
Signal the beginning of a set of changes for a given workspace.
|
boolean start(String workspaceName, boolean local)
add(NodeKey, Property[])
,
change(NodeKey, Property[], Property[])
, and remove(NodeKey)
be called; end()
will always be
called if this method returns true.workspaceName
- the name of the workspace; never nulllocal
- true if the changes originated from this same repository instance, or false if they originated on a
different repository instancevoid add(NodeKey nodeKey, Property[] newProperties)
nodeKey
- the key for the node to which the property was added; never nullnewProperties
- the newly-added properties (which may be multi-valued), in the same order as defined by the
IndexDefinition; never nullvoid change(NodeKey nodeKey, Property[] newProperties, Property[] oldProperties)
For example, if an index tracks two properties, A and B, then this method might be called with the new and old A if only A is changed.
nodeKey
- the key for the node on which the property was changed; never nullnewProperties
- the new properties (each of which may be multi-valued), in the same order as defined by the
IndexDefinition; never nulloldProperties
- the old properties (each of which may be multi-valued), in the same order as defined by the
IndexDefinition; never nullvoid remove(NodeKey nodeKey)
nodeKey
- the key for the node to which the property was added; never nullvoid end()
start(String, boolean)
call
that returned true.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.