Class ExecOpLookupJoinViaWrapperWithParamVars
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBase
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForUnaryExecOpWithCollectedInput
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.ExecOpLookupJoinViaWrapperWithParamVars
- All Implemented Interfaces:
StatsProvider,ExecutableOperator,UnaryExecutableOp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<Map<String, org.apache.jena.graph.Node>, List<SolutionMapping>> static final intprotected final WrappedRESTEndpointprotected final Map<RESTEndpoint.Parameter, org.apache.jena.sparql.core.Var> protected final SPARQLGraphPatternFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForUnaryExecOpWithCollectedInput
collectedInputSolMaps, minimumCollectionSizeFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
collectExceptions, qpInfo -
Constructor Summary
ConstructorsConstructorDescriptionExecOpLookupJoinViaWrapperWithParamVars(SPARQLGraphPattern pattern, Map<String, org.apache.jena.sparql.core.Var> paramVars, WrappedRESTEndpoint fm, boolean collectExceptions, QueryPlanningInfo qpInfo) ExecOpLookupJoinViaWrapperWithParamVars(SPARQLGraphPattern pattern, Map<String, org.apache.jena.sparql.core.Var> paramVars, WrappedRESTEndpoint fm, int minimumInputBlockSize, boolean collectExceptions, QueryPlanningInfo qpInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_concludeExecution(List<SolutionMapping> input, IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to process the given solution mappings as last input, conclude the execution of this operator, and send the remaining result elements (if any) to the given sink.protected void_processCollectedInput(List<SolutionMapping> input, IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to process the given solution mappings as input and send the produced result elements (if any) to the given sink.protected RESTRequestcreateRequest(Map<String, org.apache.jena.graph.Node> paramValues) Assumes that the number of parameter values in the given array is the same as the number of parameter declarations of the REST endpoint and that the datatypes of the values match the ones of the parameter declarations.protected ExecutableOperatorStatsImplReturns the values that the given solution mapping has for the parameter variables, but only if the solution mapping does indeed have bindings for all parameter variables and the values bound to these variables are literals of the correct datatypes (as specified in the parameter declaration of the REST endpoint).protected voidjoin(Iterable<SolutionMapping> solmaps1, Iterable<SolutionMapping> solmaps2, IntermediateResultElementSink sink) Joins the given sets of solution mappings and sends the result to the given sink.protected voidjoin(Iterable<SolutionMapping> solmaps, SolutionMapping sm, IntermediateResultElementSink sink) Joins the given set of solution mappings with a singleton set that contains the single given solution mapping, and sends the result to the given sink.voidMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForUnaryExecOpWithCollectedInput
_concludeExecution, _process, _processMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.UnaryExecutableOpBase
concludeExecution, getStats, process, processMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
getExceptionsCaughtDuringExecution, getQueryPlanningInfo, recordExceptionCaughtDuringExecutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.engine.queryplan.executable.ExecutableOperator
getExceptionsCaughtDuringExecution, getQueryPlanningInfo
-
Field Details
-
DEFAULT_INPUT_BLOCK_SIZE
public static final int DEFAULT_INPUT_BLOCK_SIZE- See Also:
-
pattern
-
paramVars
-
fm
-
cache
-
-
Constructor Details
-
ExecOpLookupJoinViaWrapperWithParamVars
public ExecOpLookupJoinViaWrapperWithParamVars(SPARQLGraphPattern pattern, Map<String, org.apache.jena.sparql.core.Var> paramVars, WrappedRESTEndpoint fm, boolean collectExceptions, QueryPlanningInfo qpInfo) -
ExecOpLookupJoinViaWrapperWithParamVars
public ExecOpLookupJoinViaWrapperWithParamVars(SPARQLGraphPattern pattern, Map<String, org.apache.jena.sparql.core.Var> paramVars, WrappedRESTEndpoint fm, int minimumInputBlockSize, boolean collectExceptions, QueryPlanningInfo qpInfo)
-
-
Method Details
-
_processCollectedInput
protected void _processCollectedInput(List<SolutionMapping> input, IntermediateResultElementSink sink, ExecutionContext execCxt) throws ExecOpExecutionException Description copied from class:BaseForUnaryExecOpWithCollectedInputImplementations of this function need to process the given solution mappings as input and send the produced result elements (if any) to the given sink. If an exception occurs while processing the solution mappings, then this exception needs to be thrown.- Specified by:
_processCollectedInputin classBaseForUnaryExecOpWithCollectedInput- Throws:
ExecOpExecutionException
-
_concludeExecution
protected void _concludeExecution(List<SolutionMapping> input, IntermediateResultElementSink sink, ExecutionContext execCxt) throws ExecOpExecutionException Description copied from class:BaseForUnaryExecOpWithCollectedInputImplementations of this function need to process the given solution mappings as last input, conclude the execution of this operator, and send the remaining result elements (if any) to the given sink. Notice that the list of solution mappings given here may contain fewer solution mappings than the minimum collection size, and it may even be empty! If an exception occurs during this process, then this exception needs to be thrown.- Specified by:
_concludeExecutionin classBaseForUnaryExecOpWithCollectedInput- Throws:
ExecOpExecutionException
-
extractParamValues
Returns the values that the given solution mapping has for the parameter variables, but only if the solution mapping does indeed have bindings for all parameter variables and the values bound to these variables are literals of the correct datatypes (as specified in the parameter declaration of the REST endpoint). Otherwise,nullis returned.- Parameters:
sm- - the solution mapping from which the parameter values are to be extracted- Returns:
- the parameter values (in the form of a Jena
Nodeobjects) ornull
-
createRequest
Assumes that the number of parameter values in the given array is the same as the number of parameter declarations of the REST endpoint and that the datatypes of the values match the ones of the parameter declarations. -
join
protected void join(Iterable<SolutionMapping> solmaps1, Iterable<SolutionMapping> solmaps2, IntermediateResultElementSink sink) Joins the given sets of solution mappings and sends the result to the given sink.- Parameters:
solmaps1-solmaps2-sink-
-
join
protected void join(Iterable<SolutionMapping> solmaps, SolutionMapping sm, IntermediateResultElementSink sink) Joins the given set of solution mappings with a singleton set that contains the single given solution mapping, and sends the result to the given sink.- Parameters:
solmaps-sm-sink-
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceStatsProvider- Overrides:
resetStatsin classBaseForUnaryExecOpWithCollectedInput
-
createStats
- Overrides:
createStatsin classBaseForUnaryExecOpWithCollectedInput
-