Interface QueryResultChange
public interface QueryResultChange
Describes the change of a query result.
Note that the general contract for topologies does not apply here since the topologies
from this interface are breakdown fragments. The general contract is:
If a topology A and B are created from the same active query and they have the same query result version, then A's CI and Relation structure is equal to B's structure. Properties are not necessarily equal."
If a topology A and B are created from the same active query and they have the same query result version, then A's CI and Relation structure is equal to B's structure. Properties are not necessarily equal."
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the structure containing the elements added to the result of the query.The name of the query whose result has changed.Returns the query result version after the change.Returns the structure containing the elements removed from the result of the query.Returns the structure containing the elements in the query result whose properties were updated.boolean
Checks whether this elements were added in this change.boolean
Returns true if if this change contains removed elements.boolean
Checks whether this elements were updated in this change.boolean
Checks whether the change is too large to be handled with this mechanism.
-
Method Details
-
getQueryName
String getQueryName()The name of the query whose result has changed. -
isMassiveTopologyChange
boolean isMassiveTopologyChange()Checks whether the change is too large to be handled with this mechanism. IfisMassiveTopologyChange
returns true, all thehas*
methods return false. In this case, the application can get the new information by rereading the result of the query.- Returns:
true
if a large change has occured
-
hasAddedTopology
boolean hasAddedTopology()Checks whether this elements were added in this change. -
getAddedTopology
Topology getAddedTopology()Returns the structure containing the elements added to the result of the query. -
hasRemovedTopology
boolean hasRemovedTopology()Returns true if if this change contains removed elements.- Returns:
true
if this change contains removed elements
-
getRemovedTopology
Topology getRemovedTopology()Returns the structure containing the elements removed from the result of the query. -
hasUpdatedTopology
boolean hasUpdatedTopology()Checks whether this elements were updated in this change. -
getUpdatedTopology
Topology getUpdatedTopology()Returns the structure containing the elements in the query result whose properties were updated. Only the properties that changed are returned with their CIs and Relations. -
getQueryResultVersion
QueryResultVersion getQueryResultVersion()Returns the query result version after the change. If topology breakdown is available (isMassiveTopologyChange()
is false), then for each non-empty topology (Topology.isEmpty()
is true), the query result version in that topology is the same as this version.- Returns:
- the version of the query result after this change
-