Class CardinalityResponseImplWithoutCardinality
java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.response.CardinalityResponseImpl
se.liu.ida.hefquin.engine.federation.access.impl.response.CardinalityResponseImplWithoutCardinality
- All Implemented Interfaces:
 CardinalityResponse,DataRetrievalResponse<Integer>
A subclass of 
CardinalityResponseImpl representing a response where the cardinality is not available.
 This implementation wraps a DataRetrievalResponse and a DataRetrievalRequest and captures the
 exception that occurred, while assigning Integer.MAX_VALUE as a placeholder for the unknown cardinality.- 
Field Summary
FieldsFields inherited from class se.liu.ida.hefquin.engine.federation.access.impl.response.CardinalityResponseImpl
cardinality, request, wrappedResponse - 
Constructor Summary
ConstructorsConstructorDescriptionCardinalityResponseImplWithoutCardinality(Exception exception, DataRetrievalResponse<?> wrappedResponse, DataRetrievalRequest request) Constructs aCardinalityResponseImplWithoutCardinalitywith the given exception. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the exception that caused the absence of cardinality/cardinality estimate.Methods inherited from class se.liu.ida.hefquin.engine.federation.access.impl.response.CardinalityResponseImpl
getErrorDescription, getErrorStatusCode, getFederationMember, getRequest, getRequestDuration, getRequestStartTime, getResponseData, getRetrievalEndTime, getWrappedResponse, isErrorMethods 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.CardinalityResponse
getCardinality 
- 
Field Details
- 
exception
 
 - 
 - 
Constructor Details
- 
CardinalityResponseImplWithoutCardinality
public CardinalityResponseImplWithoutCardinality(Exception exception, DataRetrievalResponse<?> wrappedResponse, DataRetrievalRequest request) Constructs aCardinalityResponseImplWithoutCardinalitywith the given exception.- Parameters:
 exception- the exception that caused the absence of cardinality/cardinality estimatewrappedResponse- the original data retrieval responserequest- the original data retrieval request
 
 - 
 - 
Method Details
- 
getException
Returns the exception that caused the absence of cardinality/cardinality estimate.- Returns:
 - the associated exception
 
 
 -