public class QueryOperationExecutor extends Object
PropertyExecutors on VarPropertys within Querys.
Multiple query types share this class, such as InsertQuery and DefineQuery.
| Modifier and Type | Method and Description |
|---|---|
ConceptBuilder |
builder(Var var)
Return a
ConceptBuilder for given Var. |
Concept |
get(Var var)
|
Optional<ConceptBuilder> |
tryBuilder(Var var)
Return a
ConceptBuilder for given Var. |
public ConceptBuilder builder(Var var)
ConceptBuilder for given Var. This can be used to provide information for how to create
the concept that the variable represents.
This method is expected to be called from implementations of
VarPropertyInternal.insert(Var), provided they return the given Var in the
response to PropertyExecutor.producedVars().
For example, a property may call executor.builder(var).isa(type); in order to provide a type for a var.
GraqlQueryException - if the concept in question has already been createdpublic Optional<ConceptBuilder> tryBuilder(Var var)
ConceptBuilder for given Var. This can be used to provide information for how to create
the concept that the variable represents.
This method is expected to be called from implementations of
VarPropertyInternal.insert(Var), provided they return the given Var in the
response to PropertyExecutor.producedVars().
For example, a property may call executor.builder(var).isa(type); in order to provide a type for a var.
If the concept has already been created, this will return empty.
public Concept get(Var var)
Concept for a given Var.
This method is expected to be called from implementations of
VarPropertyInternal.insert(Var), provided they return the given Var in the
response to PropertyExecutor.requiredVars().
Copyright © 2017 Grakn Labs Ltd. All rights reserved.