Class QueryEntityPatch


  • public class QueryEntityPatch
    extends Object
    Query entity patch which contain 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.
    • 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 SchemaAbstractOperation operations for changing query entity.
      • hasConflict

        public boolean hasConflict()
        Check for conflict in this patch.
        Returns:
        true if patch has conflict.
      • isEmpty

        public boolean isEmpty()
        Returns:
        true if 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.