public class NeqPredicate extends Predicate<Var>
Predicate implementation specialising it to be an inequality predicate. Corresponds to graql NeqProperty.
| Constructor and Description |
|---|
NeqPredicate(NeqPredicate a) |
NeqPredicate(Var varName,
NeqProperty prop,
ReasonerQuery parent) |
| Modifier and Type | Method and Description |
|---|---|
Atomic |
copy() |
protected Var |
extractPredicate(VarPatternAdmin pattern) |
QueryAnswers |
filter(QueryAnswers answers)
apply the not equals filter to answer set
|
java.util.stream.Stream<Answer> |
filter(java.util.stream.Stream<Answer> answers)
apply the not equals filter to answer stream
|
String |
getPredicateValue() |
Set<Var> |
getVarNames() |
boolean |
isNeqPredicate() |
static boolean |
notEqualsOperator(Answer answer,
NeqPredicate atom) |
String |
toString() |
equals, equivalenceHashCode, getPredicate, hashCode, isEquivalent, isIdPredicate, isPredicate, isRuleResolvable, isValuePredicatecontainsVar, getCombinedPattern, getParentQuery, getPattern, getVarName, graph, isUserDefinedName, setParentQueryclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAtom, isRecursive, isSelectablepublic NeqPredicate(Var varName, NeqProperty prop, ReasonerQuery parent)
public NeqPredicate(NeqPredicate a)
public String toString()
toString in class AtomicBasepublic Atomic copy()
copy in interface Atomiccopy in class AtomicBasepublic String getPredicateValue()
getPredicateValue in class Predicate<Var>protected Var extractPredicate(VarPatternAdmin pattern)
extractPredicate in class Predicate<Var>public boolean isNeqPredicate()
isNeqPredicate in class Predicate<Var>public Set<Var> getVarNames()
getVarNames in interface AtomicgetVarNames in class AtomicBasepublic static boolean notEqualsOperator(Answer answer, NeqPredicate atom)
public QueryAnswers filter(QueryAnswers answers)
answers - the filter should be applied topublic java.util.stream.Stream<Answer> filter(java.util.stream.Stream<Answer> answers)
answers - the filter should be applied toCopyright © 2017 Grakn Labs Ltd. All rights reserved.