Package hydra.core
Class Projection
- java.lang.Object
-
- hydra.core.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>
A record elimination; a projection- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameFIELD_NAMEName of thehydra.core.Projection.fieldNamefield.NamefieldNameThe name of the projected fieldstatic NameTYPE_Name of thehydra.core.Projectiontype.static NameTYPE_NAMEName of thehydra.core.Projection.typeNamefield.NametypeNameThe name of the record type
-
Constructor Summary
Constructors Constructor Description Projection(Name typeName, Name fieldName)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()ProjectionwithFieldName(Name fieldName)Returns a copy of thisProjectionwithfieldNamereplaced.ProjectionwithTypeName(Name typeName)Returns a copy of thisProjectionwithtypeNamereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.core.Projectiontype.
-
TYPE_NAME
public static final Name TYPE_NAME
Name of thehydra.core.Projection.typeNamefield.
-
FIELD_NAME
public static final Name FIELD_NAME
Name of thehydra.core.Projection.fieldNamefield.
-
typeName
public final Name typeName
The name of the record type
-
fieldName
public final Name fieldName
The name of the projected field
-
-
Constructor Detail
-
Projection
public Projection(Name typeName, Name fieldName)
Constructs an immutableProjection.- Parameters:
typeName- The name of the record typefieldName- The name of the projected field
-
-
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>
-
withTypeName
public Projection withTypeName(Name typeName)
Returns a copy of thisProjectionwithtypeNamereplaced.
-
withFieldName
public Projection withFieldName(Name fieldName)
Returns a copy of thisProjectionwithfieldNamereplaced.
-
-