Class QuerySchema

    • Constructor Detail

      • QuerySchema

        public QuerySchema()
        Default constructor.
      • QuerySchema

        public QuerySchema​(Collection<QueryEntity> entities)
        Constructor.
        Parameters:
        entities - Query entities.
    • Method Detail

      • copy

        public QuerySchema copy()
        Copy object.
        Returns:
        Copy.
      • makePatch

        public QuerySchemaPatch makePatch​(Collection<QueryEntity> target)
        Make query schema patch.
        Parameters:
        target - Query entity list to which current schema should be expanded.
        Returns:
        Patch to achieve entity which is a result of merging current one and target.
        See Also:
        QuerySchemaPatch
      • makePatch

        public QuerySchemaPatch makePatch​(CacheConfiguration<?,​?> targetCfg,
                                          Collection<QueryEntity> target)
        Make query schema patch.
        Parameters:
        targetCfg - Cache configuration when it should be changed (enabling indexing dynamically).
        target - Query entity list to which current schema should be expanded.
        Returns:
        Patch to achieve entity which is a result of merging current one and target.
        See Also:
        QuerySchemaPatch
      • applyPatch

        public boolean applyPatch​(QuerySchemaPatch patch)
        Apply query schema patch for changing this schema.
        Parameters:
        patch - Patch to apply.
        Returns:
        true if applying was success and false otherwise.
      • finish

        public void finish​(SchemaAbstractOperation op)
        Process operation.
        Parameters:
        op - Operation for handle.
      • isEmpty

        public boolean isEmpty()
        Returns:
        True if entities is not empty.