Package hydra.query
Class Query
- java.lang.Object
-
- hydra.query.Query
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Query>
public class Query extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Query>
A SELECT-style graph pattern matching query- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Pattern>patternsThe patterns to be matchedstatic NamePATTERNSName of thehydra.query.Query.patternsfield.static NameTYPE_Name of thehydra.query.Querytype.java.util.List<Variable>variablesThe variables selected by the querystatic NameVARIABLESName of thehydra.query.Query.variablesfield.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Query other)booleanequals(java.lang.Object other)inthashCode()QuerywithPatterns(java.util.List<Pattern> patterns)Returns a copy of thisQuerywithpatternsreplaced.QuerywithVariables(java.util.List<Variable> variables)Returns a copy of thisQuerywithvariablesreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.query.Querytype.
-
VARIABLES
public static final Name VARIABLES
Name of thehydra.query.Query.variablesfield.
-
PATTERNS
public static final Name PATTERNS
Name of thehydra.query.Query.patternsfield.
-
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
-
-
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(Query other)
- Specified by:
compareToin interfacejava.lang.Comparable<Query>
-
withVariables
public Query withVariables(java.util.List<Variable> variables)
Returns a copy of thisQuerywithvariablesreplaced.
-
-