Package com.gdblab.pathAlgebra.syntax
Class Projection
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.Projection
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Projection>
public class Projection extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Projection>
The projection of a path query: part, group, and path projections- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProjection.BuilderA fluent builder forProjection.
-
Field Summary
Fields Modifier and Type Field Description static NameGROUP_PROJName of thecom.gdblab.pathAlgebra.syntax.Projection.groupProjfield.GroupProjgroupProjstatic NamePART_PROJName of thecom.gdblab.pathAlgebra.syntax.Projection.partProjfield.PartProjpartProjstatic NamePATH_PROJName of thecom.gdblab.pathAlgebra.syntax.Projection.pathProjfield.PathProjpathProjstatic NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.Projectiontype.
-
Constructor Summary
Constructors Constructor Description Projection(PartProj partProj, GroupProj groupProj, PathProj pathProj)Constructs an immutableProjection.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Projection.Builderbuilder()Creates a new fluent builder forProjection.intcompareTo(Projection other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()ProjectionwithGroupProj(GroupProj groupProj)Returns a copy of thisProjectionwithgroupProjreplaced.ProjectionwithPartProj(PartProj partProj)Returns a copy of thisProjectionwithpartProjreplaced.ProjectionwithPathProj(PathProj pathProj)Returns a copy of thisProjectionwithpathProjreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.Projectiontype.
-
PART_PROJ
public static final Name PART_PROJ
Name of thecom.gdblab.pathAlgebra.syntax.Projection.partProjfield.
-
GROUP_PROJ
public static final Name GROUP_PROJ
Name of thecom.gdblab.pathAlgebra.syntax.Projection.groupProjfield.
-
PATH_PROJ
public static final Name PATH_PROJ
Name of thecom.gdblab.pathAlgebra.syntax.Projection.pathProjfield.
-
partProj
public final PartProj partProj
-
groupProj
public final GroupProj groupProj
-
pathProj
public final PathProj pathProj
-
-
Constructor Detail
-
Projection
public Projection(PartProj partProj, GroupProj groupProj, PathProj pathProj)
Constructs an immutableProjection.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(Projection other)
- Specified by:
compareToin interfacejava.lang.Comparable<Projection>
-
withPartProj
public Projection withPartProj(PartProj partProj)
Returns a copy of thisProjectionwithpartProjreplaced.
-
withGroupProj
public Projection withGroupProj(GroupProj groupProj)
Returns a copy of thisProjectionwithgroupProjreplaced.
-
withPathProj
public Projection withPathProj(PathProj pathProj)
Returns a copy of thisProjectionwithpathProjreplaced.
-
builder
public static Projection.Builder builder()
Creates a new fluent builder forProjection.
-
-