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 |
|---|---|
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 |
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 java.time.Duration getRequestLatency()
Duration