Record Class CypherParser.EdgePattern

java.lang.Object
java.lang.Record
org.impulsegraph.compiler.cypher.CypherParser.EdgePattern
Enclosing class:
CypherParser

public static record CypherParser.EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr, List<String> relationNames, boolean isUndirected, boolean isUnbounded) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr)
     
    EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr, List<String> relationNames, boolean isUndirected, boolean isUnbounded)
    Creates an instance of a EdgePattern record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the filterExpr record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isForward record component.
    boolean
    Returns the value of the isUnbounded record component.
    boolean
    Returns the value of the isUndirected record component.
    int
    Returns the value of the maxHops record component.
    int
    Returns the value of the minHops record component.
    Returns the value of the relationName record component.
    Returns the value of the relationNames record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the variable record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EdgePattern

      public EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr, List<String> relationNames, boolean isUndirected, boolean isUnbounded)
      Creates an instance of a EdgePattern record class.
      Parameters:
      variable - the value for the variable record component
      relationName - the value for the relationName record component
      isForward - the value for the isForward record component
      minHops - the value for the minHops record component
      maxHops - the value for the maxHops record component
      filterExpr - the value for the filterExpr record component
      relationNames - the value for the relationNames record component
      isUndirected - the value for the isUndirected record component
      isUnbounded - the value for the isUnbounded record component
    • EdgePattern

      public EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr)
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • variable

      public String variable()
      Returns the value of the variable record component.
      Returns:
      the value of the variable record component
    • relationName

      public String relationName()
      Returns the value of the relationName record component.
      Returns:
      the value of the relationName record component
    • isForward

      public boolean isForward()
      Returns the value of the isForward record component.
      Returns:
      the value of the isForward record component
    • minHops

      public int minHops()
      Returns the value of the minHops record component.
      Returns:
      the value of the minHops record component
    • maxHops

      public int maxHops()
      Returns the value of the maxHops record component.
      Returns:
      the value of the maxHops record component
    • filterExpr

      public String filterExpr()
      Returns the value of the filterExpr record component.
      Returns:
      the value of the filterExpr record component
    • relationNames

      public List<String> relationNames()
      Returns the value of the relationNames record component.
      Returns:
      the value of the relationNames record component
    • isUndirected

      public boolean isUndirected()
      Returns the value of the isUndirected record component.
      Returns:
      the value of the isUndirected record component
    • isUnbounded

      public boolean isUnbounded()
      Returns the value of the isUnbounded record component.
      Returns:
      the value of the isUnbounded record component