Package org.apache.ignite.cache
Class QueryEntityPatch
- java.lang.Object
-
- org.apache.ignite.cache.QueryEntityPatch
-
public class QueryEntityPatch extends Object
Query entity patch which containSchemaAbstractOperationoperations 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryEntityPatchconflict(String conflicts)Builder method for patch with conflicts.static QueryEntityPatchempty()Builder method for empty patch.StringgetConflictsMessage()Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation>getPatchOperations()booleanhasConflict()Check for conflict in this patch.booleanisEmpty()static QueryEntityPatchpatch(Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> patchOperations)Builder method for patch with operations.StringtoString()
-
-
-
Method Detail
-
conflict
public static QueryEntityPatch conflict(String conflicts)
Builder method for patch with conflicts.- Parameters:
conflicts- Conflicts.- Returns:
- Query entity patch with conflicts.
-
empty
public static QueryEntityPatch empty()
Builder method for empty patch.- Returns:
- Query entity patch.
-
patch
public static QueryEntityPatch patch(Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> patchOperations)
Builder method for patch with operations.- Parameters:
patchOperations- Operations for modification.- Returns:
- Query entity patch which contain
SchemaAbstractOperationoperations for changing query entity.
-
hasConflict
public boolean hasConflict()
Check for conflict in this patch.- Returns:
trueif patch has conflict.
-
isEmpty
public boolean isEmpty()
- Returns:
trueif patch is empty and can't be applying.
-
getConflictsMessage
public String getConflictsMessage()
- Returns:
- Conflicts.
-
getPatchOperations
public Collection<org.apache.ignite.internal.processors.query.schema.operation.SchemaAbstractOperation> getPatchOperations()
- Returns:
- Patch operations for applying.
-
-