@NotThreadSafe public static interface IndexChangeSetListeners.SingleColumnIndexOperations
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 newProperty)
Record the addition of the node key and property value pair to the index for the given workspace.
|
void |
change(NodeKey nodeKey,
Property newProperty,
Property oldProperty)
Record the change in the indexed property for the given node in the given workspace.
|
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 property.
|
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 newProperty)
nodeKey
- the key for the node to which the property was added; never nullnewProperty
- the newly-added property (which may be multi-valued); never nullvoid change(NodeKey nodeKey, Property newProperty, Property oldProperty)
nodeKey
- the key for the node on which the property was changed; never nullnewProperty
- the new property (which may be multi-valued); never nulloldProperty
- the old property (which may be multi-valued); 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.