Package com.gdblab.pathAlgebra.syntax
Class PathQuery
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.PathQuery
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathQuery>
public class PathQuery extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PathQuery>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameGROUP_BYName of thecom.gdblab.pathAlgebra.syntax.PathQuery.groupByfield.Optional<GroupBy>groupBystatic NameORDER_BYName of thecom.gdblab.pathAlgebra.syntax.PathQuery.orderByfield.Optional<OrderBy>orderBystatic NamePATH_PATTERNName of thecom.gdblab.pathAlgebra.syntax.PathQuery.pathPatternfield.PathPatternpathPatternProjectionprojectionstatic NamePROJECTIONName of thecom.gdblab.pathAlgebra.syntax.PathQuery.projectionfield.static NameRESTRICTOR_EXTName of thecom.gdblab.pathAlgebra.syntax.PathQuery.restrictorExtfield.Optional<RestrictorExt>restrictorExtstatic NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.PathQuerytype.
-
Constructor Summary
Constructors Constructor Description PathQuery(Projection projection, Optional<RestrictorExt> restrictorExt, PathPattern pathPattern, Optional<GroupBy> groupBy, Optional<OrderBy> orderBy)Constructs an immutablePathQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PathQuery other)booleanequals(java.lang.Object other)inthashCode()PathQuerywithGroupBy(Optional<GroupBy> groupBy)Returns a copy of thisPathQuerywithgroupByreplaced.PathQuerywithOrderBy(Optional<OrderBy> orderBy)Returns a copy of thisPathQuerywithorderByreplaced.PathQuerywithPathPattern(PathPattern pathPattern)Returns a copy of thisPathQuerywithpathPatternreplaced.PathQuerywithProjection(Projection projection)Returns a copy of thisPathQuerywithprojectionreplaced.PathQuerywithRestrictorExt(Optional<RestrictorExt> restrictorExt)Returns a copy of thisPathQuerywithrestrictorExtreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.PathQuerytype.
-
PROJECTION
public static final Name PROJECTION
Name of thecom.gdblab.pathAlgebra.syntax.PathQuery.projectionfield.
-
RESTRICTOR_EXT
public static final Name RESTRICTOR_EXT
Name of thecom.gdblab.pathAlgebra.syntax.PathQuery.restrictorExtfield.
-
PATH_PATTERN
public static final Name PATH_PATTERN
Name of thecom.gdblab.pathAlgebra.syntax.PathQuery.pathPatternfield.
-
GROUP_BY
public static final Name GROUP_BY
Name of thecom.gdblab.pathAlgebra.syntax.PathQuery.groupByfield.
-
ORDER_BY
public static final Name ORDER_BY
Name of thecom.gdblab.pathAlgebra.syntax.PathQuery.orderByfield.
-
projection
public final Projection projection
-
restrictorExt
public final Optional<RestrictorExt> restrictorExt
-
pathPattern
public final PathPattern pathPattern
-
-
Constructor Detail
-
PathQuery
public PathQuery(Projection projection, Optional<RestrictorExt> restrictorExt, PathPattern pathPattern, Optional<GroupBy> groupBy, Optional<OrderBy> orderBy)
Constructs an immutablePathQuery.
-
-
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(PathQuery other)
- Specified by:
compareToin interfacejava.lang.Comparable<PathQuery>
-
withProjection
public PathQuery withProjection(Projection projection)
Returns a copy of thisPathQuerywithprojectionreplaced.
-
withRestrictorExt
public PathQuery withRestrictorExt(Optional<RestrictorExt> restrictorExt)
Returns a copy of thisPathQuerywithrestrictorExtreplaced.
-
withPathPattern
public PathQuery withPathPattern(PathPattern pathPattern)
Returns a copy of thisPathQuerywithpathPatternreplaced.
-
withGroupBy
public PathQuery withGroupBy(Optional<GroupBy> groupBy)
Returns a copy of thisPathQuerywithgroupByreplaced.
-
-