Class BaseForExecOpRequestWithTPFPaging<ReqType extends DataRetrievalRequest,MemberType extends FederationMember,PageReqType extends DataRetrievalRequest>
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.BaseForExecOpRequestWithTPFPaging<ReqType,MemberType,PageReqType>
- All Implemented Interfaces:
StatsProvider,ExecutableOperator,NullaryExecutableOp
- Direct Known Subclasses:
BaseForExecOpTriplePatternRequestWithTPF,ExecOpRequestBRTPF
public abstract class BaseForExecOpRequestWithTPFPaging<ReqType extends DataRetrievalRequest,MemberType extends FederationMember,PageReqType extends DataRetrievalRequest>
extends BaseForExecOpRequest<ReqType,MemberType>
Base class for implementations of paging-based request operators
where pages are
TPFResponse objects.-
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
ConstructorsConstructorDescriptionBaseForExecOpRequestWithTPFPaging(ReqType req, MemberType fm, boolean collectExceptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected final 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 voidconsumeMatchingTriples(Iterable<Triple> itTriples, IntermediateResultElementSink sink) protected abstract Iterator<SolutionMapping>protected abstract PageReqTypecreatePageRequest(String nextPageURL) protected PageReqTypecreatePageRequest(TPFResponse previousPage) protected ExecutableOperatorStatsImplprotected booleanisLastPage(TPFResponse response) protected abstract TPFResponseperformPageRequest(PageReqType pageReq, FederationAccessManager fedAccessMgr) voidMethods inherited from class se.liu.ida.hefquin.engine.queryplan.executable.impl.ops.NullaryExecutableOpBase
execute, getStatsMethods 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
-
BaseForExecOpRequestWithTPFPaging
-
-
Method Details
-
_execute
protected final void _execute(IntermediateResultElementSink sink, ExecutionContext execCxt) throws ExecOpExecutionException 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- Throws:
ExecOpExecutionException
-
createPageRequest
-
isLastPage
-
consumeMatchingTriples
protected void consumeMatchingTriples(Iterable<Triple> itTriples, IntermediateResultElementSink sink) -
createPageRequest
-
performPageRequest
protected abstract TPFResponse performPageRequest(PageReqType pageReq, FederationAccessManager fedAccessMgr) throws FederationAccessException - Throws:
FederationAccessException
-
convert
-
resetStats
public void resetStats()- Specified by:
resetStatsin interfaceStatsProvider- Overrides:
resetStatsin classNullaryExecutableOpBase
-
createStats
- Overrides:
createStatsin classBaseForExecOpRequest<ReqType extends DataRetrievalRequest,MemberType extends FederationMember>
-