Record Class QueryMapping<K>
java.lang.Object
java.lang.Record
org.aksw.jenax.graphql.sparql.v2.exec.api.low.QueryMapping<K>
public record QueryMapping<K>(String name, org.apache.jena.sparql.core.Var stateVar, org.apache.jena.graph.Node rootStateId, org.apache.jena.query.Query query, Map<?,Map<org.apache.jena.sparql.core.Var,org.apache.jena.sparql.core.Var>> stateVarMap, AggStateGon<org.apache.jena.sparql.engine.binding.Binding,org.apache.jena.sparql.function.FunctionEnv,K,org.apache.jena.graph.Node> agg, boolean isSingle, GraphQlFieldRewrite<K> fieldRewrite)
extends Record
The query mapping contains the final sparql query, the corresponding accumulator, and
any additional information needed to produce the overall object notation result.
The main difference to
GraphQlFieldRewrite is that the ElementNode has been converted to a query.-
Constructor Summary
ConstructorsConstructorDescriptionQueryMapping(String name, org.apache.jena.sparql.core.Var stateVar, org.apache.jena.graph.Node rootStateId, org.apache.jena.query.Query query, Map<?, Map<org.apache.jena.sparql.core.Var, org.apache.jena.sparql.core.Var>> stateVarMap, AggStateGon<org.apache.jena.sparql.engine.binding.Binding, org.apache.jena.sparql.function.FunctionEnv, K, org.apache.jena.graph.Node> agg, boolean isSingle, GraphQlFieldRewrite<K> fieldRewrite) Creates an instance of aQueryMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionAggStateGon<org.apache.jena.sparql.engine.binding.Binding,org.apache.jena.sparql.function.FunctionEnv, K, org.apache.jena.graph.Node> agg()Returns the value of theaggrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldRewriterecord component.final inthashCode()Returns a hash code value for this object.booleanisSingle()Returns the value of theisSinglerecord component.name()Returns the value of thenamerecord component.org.apache.jena.query.Queryquery()Returns the value of thequeryrecord component.org.apache.jena.graph.NodeReturns the value of therootStateIdrecord component.org.apache.jena.sparql.core.VarstateVar()Returns the value of thestateVarrecord component.Returns the value of thestateVarMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryMapping
public QueryMapping(String name, org.apache.jena.sparql.core.Var stateVar, org.apache.jena.graph.Node rootStateId, org.apache.jena.query.Query query, Map<?, Map<org.apache.jena.sparql.core.Var, org.apache.jena.sparql.core.Var>> stateVarMap, AggStateGon<org.apache.jena.sparql.engine.binding.Binding, org.apache.jena.sparql.function.FunctionEnv, K, org.apache.jena.graph.Node> agg, boolean isSingle, GraphQlFieldRewrite<K> fieldRewrite) Creates an instance of aQueryMappingrecord class.- Parameters:
name- the value for thenamerecord componentstateVar- the value for thestateVarrecord componentrootStateId- the value for therootStateIdrecord componentquery- the value for thequeryrecord componentstateVarMap- the value for thestateVarMaprecord componentagg- the value for theaggrecord componentisSingle- the value for theisSinglerecord componentfieldRewrite- the value for thefieldRewriterecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
stateVar
public org.apache.jena.sparql.core.Var stateVar()Returns the value of thestateVarrecord component.- Returns:
- the value of the
stateVarrecord component
-
rootStateId
public org.apache.jena.graph.Node rootStateId()Returns the value of therootStateIdrecord component.- Returns:
- the value of the
rootStateIdrecord component
-
query
public org.apache.jena.query.Query query()Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
stateVarMap
Returns the value of thestateVarMaprecord component.- Returns:
- the value of the
stateVarMaprecord component
-
agg
public AggStateGon<org.apache.jena.sparql.engine.binding.Binding,org.apache.jena.sparql.function.FunctionEnv, agg()K, org.apache.jena.graph.Node> Returns the value of theaggrecord component.- Returns:
- the value of the
aggrecord component
-
isSingle
public boolean isSingle()Returns the value of theisSinglerecord component.- Returns:
- the value of the
isSinglerecord component
-
fieldRewrite
Returns the value of thefieldRewriterecord component.- Returns:
- the value of the
fieldRewriterecord component
-