Class TPFResponseImpl
java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.response.DataRetrievalResponseBase
se.liu.ida.hefquin.engine.federation.access.impl.response.TPFResponseImpl
- All Implemented Interfaces:
DataRetrievalResponse,TPFResponse,TriplesResponse
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime) Initializes the retrievalEndTime to the time when this object is created.TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime) TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime) Initializes the retrievalEndTime to the time when this object is created.TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime) -
Method Summary
Modifier and TypeMethodDescriptionReturns the cardinality estimate provided as metadata in the given TPF response.Returns an iterator over all metadata triples contained in the given TPF response.intReturns the number of triples that are returned byTPFResponse.getMetadata().Returns the URL via which the next page of the TPF can be requested.WhileTriplesResponse.getTriples()returns an iterator over all triples contained in the given TPF response, this method here returns an iterator only over the matching triples that have been requested.intReturns the number of triples that are returned byTPFResponse.getPayload().intgetSize()Returns the number of triples that are returned by theTriplesResponse.getTriples().Returnstrueif the metadata of the given TPF response indicates that this response is the last page of matching triples.Methods inherited from class se.liu.ida.hefquin.engine.federation.access.impl.response.DataRetrievalResponseBase
getFederationMember, getRequest, getRequestStartTime, getRetrievalEndTimeMethods 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.federation.access.DataRetrievalResponse
getFederationMember, getRequest, getRequestStartTime, getRetrievalEndTime
-
Field Details
-
matchingTriples
-
metadataTriples
-
cardEstimate
-
nextPageURL
-
-
Constructor Details
-
TPFResponseImpl
public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime) Initializes the retrievalEndTime to the time when this object is created. -
TPFResponseImpl
public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime) -
TPFResponseImpl
public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime) Initializes the retrievalEndTime to the time when this object is created. -
TPFResponseImpl
public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime)
-
-
Method Details
-
getTriples
- Specified by:
getTriplesin interfaceTriplesResponse
-
getSize
public int getSize()Description copied from interface:TriplesResponseReturns the number of triples that are returned by theTriplesResponse.getTriples().- Specified by:
getSizein interfaceTriplesResponse
-
getPayload
Description copied from interface:TPFResponseWhileTriplesResponse.getTriples()returns an iterator over all triples contained in the given TPF response, this method here returns an iterator only over the matching triples that have been requested.- Specified by:
getPayloadin interfaceTPFResponse
-
getPayloadSize
public int getPayloadSize()Description copied from interface:TPFResponseReturns the number of triples that are returned byTPFResponse.getPayload().- Specified by:
getPayloadSizein interfaceTPFResponse
-
getMetadata
Description copied from interface:TPFResponseReturns an iterator over all metadata triples contained in the given TPF response.- Specified by:
getMetadatain interfaceTPFResponse
-
getMetadataSize
public int getMetadataSize()Description copied from interface:TPFResponseReturns the number of triples that are returned byTPFResponse.getMetadata().- Specified by:
getMetadataSizein interfaceTPFResponse
-
isLastPage
Description copied from interface:TPFResponseReturnstrueif the metadata of the given TPF response indicates that this response is the last page of matching triples. Returnsnullof there is no metadata related to paging.- Specified by:
isLastPagein interfaceTPFResponse
-
getNextPageURL
Description copied from interface:TPFResponseReturns the URL via which the next page of the TPF can be requested. Returnsnullof no such URL is mentioned in the metadata.- Specified by:
getNextPageURLin interfaceTPFResponse
-
getCardinalityEstimate
Description copied from interface:TPFResponseReturns the cardinality estimate provided as metadata in the given TPF response. Returnsnullif there is no metadata with a cardinality estimate.- Specified by:
getCardinalityEstimatein interfaceTPFResponse
-