Class QueryExpression
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.QueryExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<QueryExpression>
public class QueryExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<QueryExpression>
Complete query with path algebra and result projection- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NamePATH_EXPRESSIONName of thecom.gdblab.pathAlgebra.expressions.QueryExpression.pathExpressionfield.PathExpressionpathExpressionstatic NameRESULT_PROJECTIONName of thecom.gdblab.pathAlgebra.expressions.QueryExpression.resultProjectionfield.Optional<ResultProjection>resultProjectionstatic NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.QueryExpressiontype.
-
Constructor Summary
Constructors Constructor Description QueryExpression(PathExpression pathExpression, Optional<ResultProjection> resultProjection)Constructs an immutableQueryExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QueryExpression other)booleanequals(java.lang.Object other)inthashCode()QueryExpressionwithPathExpression(PathExpression pathExpression)Returns a copy of thisQueryExpressionwithpathExpressionreplaced.QueryExpressionwithResultProjection(Optional<ResultProjection> resultProjection)Returns a copy of thisQueryExpressionwithresultProjectionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.QueryExpressiontype.
-
PATH_EXPRESSION
public static final Name PATH_EXPRESSION
Name of thecom.gdblab.pathAlgebra.expressions.QueryExpression.pathExpressionfield.
-
RESULT_PROJECTION
public static final Name RESULT_PROJECTION
Name of thecom.gdblab.pathAlgebra.expressions.QueryExpression.resultProjectionfield.
-
pathExpression
public final PathExpression pathExpression
-
resultProjection
public final Optional<ResultProjection> resultProjection
-
-
Constructor Detail
-
QueryExpression
public QueryExpression(PathExpression pathExpression, Optional<ResultProjection> resultProjection)
Constructs an immutableQueryExpression.
-
-
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(QueryExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<QueryExpression>
-
withPathExpression
public QueryExpression withPathExpression(PathExpression pathExpression)
Returns a copy of thisQueryExpressionwithpathExpressionreplaced.
-
withResultProjection
public QueryExpression withResultProjection(Optional<ResultProjection> resultProjection)
Returns a copy of thisQueryExpressionwithresultProjectionreplaced.
-
-