Class QuerySchema
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.QuerySchema
-
- All Implemented Interfaces:
Serializable
public class QuerySchema extends Object implements Serializable
Dynamic cache schema.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuerySchema()Default constructor.QuerySchema(Collection<QueryEntity> entities)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyPatch(QuerySchemaPatch patch)Apply query schema patch for changing this schema.QuerySchemacopy()Copy object.Collection<QueryEntity>entities()voidfinish(SchemaFinishDiscoveryMessage msg)Process finish message.voidfinish(SchemaAbstractOperation op)Process operation.booleanisEmpty()QuerySchemaPatchmakePatch(Collection<QueryEntity> target)Make query schema patch.QuerySchemaPatchmakePatch(CacheConfiguration<?,?> targetCfg, Collection<QueryEntity> target)Make query schema patch.StringtoString()
-
-
-
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:
trueif applying was success andfalseotherwise.
-
finish
public void finish(SchemaFinishDiscoveryMessage msg)
Process finish message.- Parameters:
msg- Message.
-
finish
public void finish(SchemaAbstractOperation op)
Process operation.- Parameters:
op- Operation for handle.
-
entities
public Collection<QueryEntity> entities()
- Returns:
- Query entities.
-
isEmpty
public boolean isEmpty()
- Returns:
Trueif entities is not empty.
-
-