T - return type of ComputeQuerypublic class ComputeQueryImpl<T extends Answer> extends Object implements ComputeQuery<T>
| Modifier and Type | Class and Description |
|---|---|
class |
ComputeQueryImpl.ArgumentsImpl
Argument inner class to provide access Compute Query arguments
|
ComputeQuery.Arguments| Constructor and Description |
|---|
ComputeQueryImpl(GraknTx tx,
GraqlSyntax.Compute.Method<T> method) |
ComputeQueryImpl(GraknTx tx,
GraqlSyntax.Compute.Method method,
boolean includeAttributes) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisReadOnlyforEach, spliteratorpublic ComputeQueryImpl(GraknTx tx, GraqlSyntax.Compute.Method<T> method)
public ComputeQueryImpl(GraknTx tx, GraqlSyntax.Compute.Method method, boolean includeAttributes)
public final java.util.stream.Stream<T> stream()
public final void kill()
kill in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> withTx(GraknTx tx)
public final GraqlSyntax.Compute.Method method()
method in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> from(ConceptId fromID)
from in interface ComputeQuery<T extends Answer>public final Optional<ConceptId> from()
from in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> to(ConceptId toID)
to in interface ComputeQuery<T extends Answer>public final Optional<ConceptId> to()
to in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> of(String type, String... types)
of in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> of(Collection<Label> types)
of in interface ComputeQuery<T extends Answer>public final Optional<Set<Label>> of()
of in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> in(String type, String... types)
in in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> in(Collection<Label> types)
in in interface ComputeQuery<T extends Answer>public final Optional<Set<Label>> in()
in in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> using(GraqlSyntax.Compute.Algorithm algorithm)
using in interface ComputeQuery<T extends Answer>public final Optional<GraqlSyntax.Compute.Algorithm> using()
using in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> where(GraqlSyntax.Compute.Argument arg, GraqlSyntax.Compute.Argument... args)
where in interface ComputeQuery<T extends Answer>public final ComputeQuery<T> where(Collection<GraqlSyntax.Compute.Argument> args)
where in interface ComputeQuery<T extends Answer>public final Optional<ComputeQuery.Arguments> where()
where in interface ComputeQuery<T extends Answer>public final ComputeQueryImpl includeAttributes(boolean include)
includeAttributes in interface ComputeQuery<T extends Answer>public final boolean includesAttributes()
includesAttributes in interface ComputeQuery<T extends Answer>public final Boolean inferring()
public final boolean isValid()
isValid in interface ComputeQuery<T extends Answer>public Optional<GraqlQueryException> getException()
getException in interface ComputeQuery<T extends Answer>Copyright © 2018 Grakn Labs Ltd. All rights reserved.