Package hydra.pg.query
Class EdgeProjectionPattern
- java.lang.Object
-
- hydra.pg.query.EdgeProjectionPattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EdgeProjectionPattern>
public class EdgeProjectionPattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<EdgeProjectionPattern>
A pattern matching an edge, its direction, optional label, properties, and adjacent vertex- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEdgeProjectionPattern.BuilderA fluent builder forEdgeProjectionPattern.
-
Field Summary
Fields Modifier and Type Field Description Directiondirectionstatic NameDIRECTIONName of thehydra.pg.query.EdgeProjectionPattern.directionfield.Optional<EdgeLabel>labelstatic NameLABELName of thehydra.pg.query.EdgeProjectionPattern.labelfield.java.util.List<PropertyPattern>propertiesstatic NamePROPERTIESName of thehydra.pg.query.EdgeProjectionPattern.propertiesfield.static NameTYPE_Name of thehydra.pg.query.EdgeProjectionPatterntype.Optional<VertexPattern>vertexstatic NameVERTEXName of thehydra.pg.query.EdgeProjectionPattern.vertexfield.
-
Constructor Summary
Constructors Constructor Description EdgeProjectionPattern(Direction direction, Optional<EdgeLabel> label, java.util.List<PropertyPattern> properties, Optional<VertexPattern> vertex)Constructs an immutableEdgeProjectionPattern.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdgeProjectionPattern.Builderbuilder()Creates a new fluent builder forEdgeProjectionPattern.intcompareTo(EdgeProjectionPattern other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()EdgeProjectionPatternwithDirection(Direction direction)Returns a copy of thisEdgeProjectionPatternwithdirectionreplaced.EdgeProjectionPatternwithLabel(Optional<EdgeLabel> label)Returns a copy of thisEdgeProjectionPatternwithlabelreplaced.EdgeProjectionPatternwithProperties(java.util.List<PropertyPattern> properties)Returns a copy of thisEdgeProjectionPatternwithpropertiesreplaced.EdgeProjectionPatternwithVertex(Optional<VertexPattern> vertex)Returns a copy of thisEdgeProjectionPatternwithvertexreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.pg.query.EdgeProjectionPatterntype.
-
DIRECTION
public static final Name DIRECTION
Name of thehydra.pg.query.EdgeProjectionPattern.directionfield.
-
LABEL
public static final Name LABEL
Name of thehydra.pg.query.EdgeProjectionPattern.labelfield.
-
PROPERTIES
public static final Name PROPERTIES
Name of thehydra.pg.query.EdgeProjectionPattern.propertiesfield.
-
VERTEX
public static final Name VERTEX
Name of thehydra.pg.query.EdgeProjectionPattern.vertexfield.
-
direction
public final Direction direction
-
properties
public final java.util.List<PropertyPattern> properties
-
vertex
public final Optional<VertexPattern> vertex
-
-
Constructor Detail
-
EdgeProjectionPattern
public EdgeProjectionPattern(Direction direction, Optional<EdgeLabel> label, java.util.List<PropertyPattern> properties, Optional<VertexPattern> vertex)
Constructs an immutableEdgeProjectionPattern.
-
-
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(EdgeProjectionPattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<EdgeProjectionPattern>
-
withDirection
public EdgeProjectionPattern withDirection(Direction direction)
Returns a copy of thisEdgeProjectionPatternwithdirectionreplaced.
-
withLabel
public EdgeProjectionPattern withLabel(Optional<EdgeLabel> label)
Returns a copy of thisEdgeProjectionPatternwithlabelreplaced.
-
withProperties
public EdgeProjectionPattern withProperties(java.util.List<PropertyPattern> properties)
Returns a copy of thisEdgeProjectionPatternwithpropertiesreplaced.
-
withVertex
public EdgeProjectionPattern withVertex(Optional<VertexPattern> vertex)
Returns a copy of thisEdgeProjectionPatternwithvertexreplaced.
-
builder
public static EdgeProjectionPattern.Builder builder()
Creates a new fluent builder forEdgeProjectionPattern.
-
-