Package hydra.query

Class Query

  • All Implemented Interfaces:
    java.io.Serializable

    public class Query
    extends java.lang.Object
    implements java.io.Serializable
    A SELECT-style graph pattern matching query
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_NAME

        public static final Name TYPE_NAME
      • FIELD_NAME_VARIABLES

        public static final Name FIELD_NAME_VARIABLES
      • FIELD_NAME_PATTERNS

        public static final Name FIELD_NAME_PATTERNS
      • variables

        public final java.util.List<Variable> variables
        The variables selected by the query
      • patterns

        public final java.util.List<Pattern> patterns
        The patterns to be matched
    • Constructor Detail

      • Query

        public Query​(java.util.List<Variable> variables,
                     java.util.List<Pattern> patterns)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • withVariables

        public Query withVariables​(java.util.List<Variable> variables)
      • withPatterns

        public Query withPatterns​(java.util.List<Pattern> patterns)