public class GetFeaturesResponse
extends java.lang.Object
| Constructor and Description |
|---|
GetFeaturesResponse(java.lang.String response,
java.time.Duration requestLatency) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Overrides equals() in class
Object |
java.util.List<FeatureValue> |
getFeatureValues()
Returns the feature vector as a List of
FeatureValue objects |
java.util.Map<java.lang.String,FeatureValue> |
getFeatureValuesAsMap()
Returns the feature vector as a Map, with the feature name as the key
|
java.time.Duration |
getRequestLatency()
Returns the response time (network latency + online store latency) as provided by the
underlying Http Client
|
java.util.Optional<SloInformation> |
getSloInformation()
Returns an
SloInformation objected wrapped in Optional if present in
the response received from the HTTP API, Optional.empty() otherwise |
int |
hashCode()
Overrides hashCode() in class
Object |
public GetFeaturesResponse(java.lang.String response,
java.time.Duration requestLatency)
throws TectonClientException
TectonClientExceptionpublic java.util.List<FeatureValue> getFeatureValues()
FeatureValue objectsFeatureValuepublic java.util.Map<java.lang.String,FeatureValue> getFeatureValuesAsMap()
public java.util.Optional<SloInformation> getSloInformation()
SloInformation objected wrapped in Optional if present in
the response received from the HTTP API, Optional.empty() otherwisepublic boolean equals(java.lang.Object o)
Objectequals in class java.lang.Objectpublic int hashCode()
ObjecthashCode in class java.lang.Objectpublic java.time.Duration getRequestLatency()
Duration