Class FederationAccessManagerBase1
java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.FederationAccessManagerBase1
- All Implemented Interfaces:
StatsProvider
,FederationAccessManager
- Direct Known Subclasses:
FederationAccessManagerBase2
public abstract class FederationAccessManagerBase1
extends Object
implements FederationAccessManager
As a basis for classes that implement the
FederationAccessManager
interface, this abstract base class provides default implementations of
the methods for issuing cardinality requests. These implementations issue
specific data fetching requests via which the desired cardinality estimates
can be obtained.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.jena.sparql.core.Var
static final String
static final String
static final String
static final String
protected AtomicLong
protected AtomicLong
protected AtomicLong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FederationAccessStatsImpl
protected abstract void
protected Function<SolMapsResponse,
CardinalityResponse> protected Function<TPFResponse,
CardinalityResponse> final FederationAccessStats
getStats()
Requests the cardinality of the result of the given request.issueCardinalityRequest
(TPFRequest req, BRTPFServer fm) issueCardinalityRequest
(TPFRequest req, TPFServer fm) final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.liu.ida.hefquin.engine.federation.access.FederationAccessManager
issueRequest, issueRequest, issueRequest, issueRequest, issueRequest
-
Field Details
-
enOverallNumberOfCardRequestsIssued
- See Also:
-
enNumberOfSPARQLCardRequestsIssued
- See Also:
-
enNumberOfTPFCardRequestsIssued
- See Also:
-
enNumberOfBRTPFCardRequestsIssued
- See Also:
-
countVar
protected static final org.apache.jena.sparql.core.Var countVar -
issuedCardRequestsSPARQL
-
issuedCardRequestsTPF
-
issuedCardRequestsBRTPF
-
-
Constructor Details
-
FederationAccessManagerBase1
public FederationAccessManagerBase1()
-
-
Method Details
-
issueCardinalityRequest
public CompletableFuture<CardinalityResponse> issueCardinalityRequest(SPARQLRequest req, SPARQLEndpoint fm) throws FederationAccessException Description copied from interface:FederationAccessManager
Requests the cardinality of the result of the given request. Assumes that the given request contains aSPARQLGraphPattern
rather than a fullSPARQLQuery
. If it does not, then this method throws anIllegalArgumentException
.- Specified by:
issueCardinalityRequest
in interfaceFederationAccessManager
- Throws:
FederationAccessException
-
issueCardinalityRequest
public CompletableFuture<CardinalityResponse> issueCardinalityRequest(TPFRequest req, TPFServer fm) throws FederationAccessException - Specified by:
issueCardinalityRequest
in interfaceFederationAccessManager
- Throws:
FederationAccessException
-
issueCardinalityRequest
public CompletableFuture<CardinalityResponse> issueCardinalityRequest(TPFRequest req, BRTPFServer fm) throws FederationAccessException - Specified by:
issueCardinalityRequest
in interfaceFederationAccessManager
- Throws:
FederationAccessException
-
issueCardinalityRequest
public CompletableFuture<CardinalityResponse> issueCardinalityRequest(BRTPFRequest req, BRTPFServer fm) throws FederationAccessException - Specified by:
issueCardinalityRequest
in interfaceFederationAccessManager
- Throws:
FederationAccessException
-
getStats
- Specified by:
getStats
in interfaceFederationAccessManager
- Specified by:
getStats
in interfaceStatsProvider
-
resetStats
public final void resetStats()- Specified by:
resetStats
in interfaceStatsProvider
-
_getStats
-
_resetStats
protected abstract void _resetStats() -
getFctToObtainCardinalityResponseFromSolMapsResponse
protected Function<SolMapsResponse,CardinalityResponse> getFctToObtainCardinalityResponseFromSolMapsResponse() -
getFctToObtainCardinalityResponseFromTPFResponse
protected Function<TPFResponse,CardinalityResponse> getFctToObtainCardinalityResponseFromTPFResponse()
-