Interface TPFResponse
- All Superinterfaces:
DataRetrievalResponse
,TriplesResponse
- All Known Implementing Classes:
TPFResponseImpl
-
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.int
Returns the number of triples that are returned bygetMetadata()
.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.int
Returns the number of triples that are returned bygetPayload()
.Returnstrue
if the metadata of the given TPF response indicates that this response is the last page of matching triples.Methods inherited from interface se.liu.ida.hefquin.engine.federation.access.DataRetrievalResponse
getFederationMember, getRequest, getRequestStartTime, getRetrievalEndTime
Methods inherited from interface se.liu.ida.hefquin.engine.federation.access.TriplesResponse
getSize, getTriples
-
Method Details
-
getPayload
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. -
getPayloadSize
int getPayloadSize()Returns the number of triples that are returned bygetPayload()
. -
getMetadata
Returns an iterator over all metadata triples contained in the given TPF response. -
getMetadataSize
int getMetadataSize()Returns the number of triples that are returned bygetMetadata()
. -
isLastPage
Boolean isLastPage()Returnstrue
if the metadata of the given TPF response indicates that this response is the last page of matching triples. Returnsnull
of there is no metadata related to paging. -
getNextPageURL
String getNextPageURL()Returns the URL via which the next page of the TPF can be requested. Returnsnull
of no such URL is mentioned in the metadata. -
getCardinalityEstimate
Integer getCardinalityEstimate()Returns the cardinality estimate provided as metadata in the given TPF response. Returnsnull
if there is no metadata with a cardinality estimate.
-