Package hydra.ext.cypher.features
Class PredicateFunctionFeatures
- java.lang.Object
-
- hydra.ext.cypher.features.PredicateFunctionFeatures
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PredicateFunctionFeatures>
public class PredicateFunctionFeatures extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PredicateFunctionFeatures>
Predicate functions- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.BooleanallThe all() function.static NameALLjava.lang.BooleananyThe any() function.static NameANYjava.lang.BooleanexistsThe exists() function.static NameEXISTSstatic NameIS_EMPTYjava.lang.BooleanisEmptyThe isEmpty() function.java.lang.BooleannoneThe none() function.static NameNONEjava.lang.BooleansingleThe single() function.static NameSINGLEstatic NameTYPE_
-
Constructor Summary
Constructors Constructor Description PredicateFunctionFeatures(java.lang.Boolean all, java.lang.Boolean any, java.lang.Boolean exists, java.lang.Boolean isEmpty, java.lang.Boolean none, java.lang.Boolean single)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PredicateFunctionFeatures other)booleanequals(java.lang.Object other)inthashCode()PredicateFunctionFeatureswithAll(java.lang.Boolean all)PredicateFunctionFeatureswithAny(java.lang.Boolean any)PredicateFunctionFeatureswithExists(java.lang.Boolean exists)PredicateFunctionFeatureswithIsEmpty(java.lang.Boolean isEmpty)PredicateFunctionFeatureswithNone(java.lang.Boolean none)PredicateFunctionFeatureswithSingle(java.lang.Boolean single)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
ALL
public static final Name ALL
-
ANY
public static final Name ANY
-
EXISTS
public static final Name EXISTS
-
IS_EMPTY
public static final Name IS_EMPTY
-
NONE
public static final Name NONE
-
SINGLE
public static final Name SINGLE
-
all
public final java.lang.Boolean all
The all() function. Returns true if the predicate holds for all elements in the given LIST<ANY>.
-
any
public final java.lang.Boolean any
The any() function. Returns true if the predicate holds for at least one element in the given LIST<ANY>.
-
exists
public final java.lang.Boolean exists
The exists() function. Returns true if a match for the pattern exists in the graph.
-
isEmpty
public final java.lang.Boolean isEmpty
The isEmpty() function. Checks whether a LIST<ANY> is empty.; Checks whether a MAP is empty.; Checks whether a STRING is empty.
-
none
public final java.lang.Boolean none
The none() function. Returns true if the predicate holds for no element in the given LIST<ANY>.
-
single
public final java.lang.Boolean single
The single() function. Returns true if the predicate holds for exactly one of the elements in the given LIST<ANY>.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(PredicateFunctionFeatures other)
- Specified by:
compareToin interfacejava.lang.Comparable<PredicateFunctionFeatures>
-
withAll
public PredicateFunctionFeatures withAll(java.lang.Boolean all)
-
withAny
public PredicateFunctionFeatures withAny(java.lang.Boolean any)
-
withExists
public PredicateFunctionFeatures withExists(java.lang.Boolean exists)
-
withIsEmpty
public PredicateFunctionFeatures withIsEmpty(java.lang.Boolean isEmpty)
-
withNone
public PredicateFunctionFeatures withNone(java.lang.Boolean none)
-
withSingle
public PredicateFunctionFeatures withSingle(java.lang.Boolean single)
-
-