public class QueryEntityPatch extends Object
SchemaAbstractOperation
operations for changing query entity.
This patch can only add properties to entity and can't remove them.
Other words, the patch will contain only add operations
(e.g.:
SchemaAlterTableAddColumnOperation
,
SchemaIndexCreateOperation
) and not remove ones.
It contain only add operation because at the moment we don't have history of schema operations
and by current state we can't understand some property was already deleted or it has not been added yet.Modifier and Type | Method and Description |
---|---|
static QueryEntityPatch |
conflict(String conflicts)
Builder method for patch with conflicts.
|
static QueryEntityPatch |
empty()
Builder method for empty patch.
|
String |
getConflictsMessage() |
Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> |
getPatchOperations() |
boolean |
hasConflict()
Check for conflict in this patch.
|
boolean |
isEmpty() |
static QueryEntityPatch |
patch(Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> patchOperations)
Builder method for patch with operations.
|
String |
toString() |
public static QueryEntityPatch conflict(String conflicts)
conflicts
- Conflicts.public static QueryEntityPatch empty()
public static QueryEntityPatch patch(Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> patchOperations)
patchOperations
- Operations for modification.SchemaAbstractOperation
operations for changing query entity.public boolean hasConflict()
true
if patch has conflict.public boolean isEmpty()
true
if patch is empty and can't be applying.public String getConflictsMessage()
public Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> getPatchOperations()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024