Package hydra.pg.query
Class Projection
- java.lang.Object
-
- hydra.pg.query.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>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Projection(Expression value, Optional<Variable> as)Constructs an immutableProjection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Projection other)booleanequals(java.lang.Object other)inthashCode()ProjectionwithAs(Optional<Variable> as)Returns a copy of thisProjectionwithasreplaced.ProjectionwithValue(Expression value)Returns a copy of thisProjectionwithvaluereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.pg.query.Projectiontype.
-
VALUE
public static final Name VALUE
Name of thehydra.pg.query.Projection.valuefield.
-
AS
public static final Name AS
Name of thehydra.pg.query.Projection.asfield.
-
value
public final Expression value
-
-
Constructor Detail
-
Projection
public Projection(Expression value, Optional<Variable> as)
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
-
compareTo
public int compareTo(Projection other)
- Specified by:
compareToin interfacejava.lang.Comparable<Projection>
-
withValue
public Projection withValue(Expression value)
Returns a copy of thisProjectionwithvaluereplaced.
-
withAs
public Projection withAs(Optional<Variable> as)
Returns a copy of thisProjectionwithasreplaced.
-
-