public class GetFeaturesBatchResponse
extends java.lang.Object
The List of GetFeaturesResponse objects represents the list of response, each
of which encapsulates a feature vector and its metadata. Note: The list may contain nulls for any
request that was never completed, due to a timeout.
The batchSloInformation is only present for batch requests to the /get-features-batch endpoint (i.e. microBatchSize>1)
| Constructor and Description |
|---|
GetFeaturesBatchResponse(java.util.List<HttpResponse> httpResponseList,
java.time.Duration totalDuration,
int microBatchSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Overrides equals() in class
Object |
java.util.List<GetFeaturesResponse> |
getBatchResponseList()
Returns a list of
GetFeaturesResponse objects, each encapsulating a feature vector and
its metadata |
java.util.Optional<SloInformation> |
getBatchSloInformation()
Returns an
SloInformation object wrapped in Optional if present in
the response received from the HTTP API, Optional.empty() otherwise |
java.time.Duration |
getRequestLatency()
Returns the response time (network latency + online store latency) as provided by the
underlying Http Client
|
int |
hashCode()
Overrides hashCode() in class
Object |
public GetFeaturesBatchResponse(java.util.List<HttpResponse> httpResponseList, java.time.Duration totalDuration, int microBatchSize)
public java.util.List<GetFeaturesResponse> getBatchResponseList()
GetFeaturesResponse objects, each encapsulating a feature vector and
its metadataList of GetFeaturesResponsepublic java.time.Duration getRequestLatency()
Durationpublic java.util.Optional<SloInformation> getBatchSloInformation()
SloInformation object wrapped in Optional if present in
the response received from the HTTP API, Optional.empty() otherwiseSloInformation for the batch requestpublic boolean equals(java.lang.Object o)
Objectequals in class java.lang.Objectpublic int hashCode()
ObjecthashCode in class java.lang.Object