Class BaseForExecOpTriplesRequest<ReqType extends DataRetrievalRequest,MemberType extends FederationMember>
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.NullaryExecutableOpBase
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOpRequest<ReqType,MemberType>
se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOpTriplesRequest<ReqType,MemberType>
- All Implemented Interfaces:
StatsProvider,ExecutableOperator,NullaryExecutableOp
public abstract class BaseForExecOpTriplesRequest<ReqType extends DataRetrievalRequest,MemberType extends FederationMember>
extends BaseForExecOpRequest<ReqType,MemberType>
Base class for implementations of request operators with
requests that return triples and that can be performed as
is. The latter means that such requests do not have to be
broken into multiple requests as would be the case when
interacting with, e.g., a TPF server which employs paging.
For interactions with TPF servers, there is a different
base class:
BaseForExecOpTriplePatternRequestWithTPF.-
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOpRequest
fm, reqFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.NullaryExecutableOpBase
timeAtExecEnd, timeAtExecStartFields inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
collectExceptions -
Constructor Summary
ConstructorsConstructorDescriptionBaseForExecOpTriplesRequest(ReqType req, MemberType fm, boolean collectExceptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_execute(IntermediateResultElementSink sink, ExecutionContext execCxt) Implementations of this function need to execute the algorithm of this operator and send the result elements (if any) to the given sink.protected abstract Iterator<? extends SolutionMapping>protected abstract TriplesResponseperformRequest(FederationAccessManager fedAccessMgr) Methods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOpRequest
createStatsMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.NullaryExecutableOpBase
execute, getStats, resetStatsMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.BaseForExecOps
getExceptionsCaughtDuringExecution, 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
-
Constructor Details
-
BaseForExecOpTriplesRequest
-
-
Method Details
-
_execute
Description copied from class:NullaryExecutableOpBaseImplementations of this function need to execute the algorithm of this operator and send the result elements (if any) to the given sink. If an exception occurs during this process, then this exception needs to either be collected or be thrown, depending on whetherBaseForExecOps.collectExceptionsis set totrue.- Specified by:
_executein classNullaryExecutableOpBase
-
performRequest
-
convert
protected abstract Iterator<? extends SolutionMapping> convert(Iterable<? extends Triple> itTriples)
-