public class FeatureValue
extends java.lang.Object
| Constructor and Description |
|---|
FeatureValue(java.lang.Object featureObject,
java.lang.String name,
ValueType valueType,
java.util.Optional<ValueType> elementValueType,
java.lang.String effectiveTime,
java.util.Optional<FeatureStatus> featureStatus) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
booleanValue()
A Feature Value of type Boolean
|
java.util.List<java.lang.Float> |
float32ArrayValue()
A Feature Value of type ARRAY with FLOAT32 values
|
java.util.List<java.lang.Double> |
float64ArrayValue()
A Feature Value of type ARRAY with FLOAT64 values
|
java.lang.Double |
float64Value()
A Feature Value of type Float64 (Double)
|
java.util.Optional<java.time.Instant> |
getEffectiveTime()
Returns the effective serving time for this feature.
|
java.lang.String |
getFeatureName()
Returns the feature service name
|
java.lang.String |
getFeatureNamespace()
Returns the feature service namespace
|
java.util.Optional<FeatureStatus> |
getFeatureStatus()
Returns the feature status of the feature value.
|
java.util.Optional<ValueType> |
getListElementType()
Returns the individual array element type if the feature valueType is ARRAY.
|
ValueType |
getValueType()
Returns the ValueType representing the Tecton data_type for the feature value.
|
java.util.List<java.lang.Long> |
int64ArrayValue()
A Feature Value of type ARRAY with INT64 values
|
java.lang.Long |
int64value()
A Feature Value of type int64 (Long)
|
java.util.List<java.lang.String> |
stringArrayValue()
A Feature Value of type ARRAY with String values
|
java.lang.String |
stringValue()
A Feature Value of type String
|
public FeatureValue(java.lang.Object featureObject,
java.lang.String name,
ValueType valueType,
java.util.Optional<ValueType> elementValueType,
java.lang.String effectiveTime,
java.util.Optional<FeatureStatus> featureStatus)
public ValueType getValueType()
ValueType of the feature valuepublic java.util.Optional<ValueType> getListElementType()
ValueType of the feature values in the array wrapped in Optional if the getValueType() is ARRAY, Optional.empty() otherwisepublic java.util.Optional<FeatureStatus> getFeatureStatus()
Optional.public java.util.Optional<java.time.Instant> getEffectiveTime()
public java.lang.String getFeatureName()
public java.lang.String getFeatureNamespace()
public java.lang.String stringValue()
throws TectonClientException
TectonClientException - if the method is called on a value whose ValueType is not STRINGpublic java.lang.Long int64value()
throws TectonClientException
TectonClientException - if the method is called on a value whose ValueType is not INT64public java.lang.Boolean booleanValue()
throws TectonClientException
TectonClientException - if the method is called on a value whose ValueType is not BOOLEANpublic java.lang.Double float64Value()
throws TectonClientException
TectonClientException - if the method is called on a value whose ValueType is not FLOAT64public java.util.List<java.lang.Double> float64ArrayValue()
throws TectonClientException
TectonClientException - if the method is called on a value whose valueType is not ARRAY
or listElementType is not FLOAT64public java.util.List<java.lang.Float> float32ArrayValue()
throws TectonClientException
TectonClientException - if the method is called on a value whose valueType is not ARRAY
or listElementType is not FLOAT32public java.util.List<java.lang.Long> int64ArrayValue()
throws TectonClientException
TectonClientException - if the method is called on a value whose valueType is not ARRAY
or listElementType is not INT64public java.util.List<java.lang.String> stringArrayValue()
throws TectonClientException
TectonClientException - if the method is called on a value whose valueType is not ARRAY
or listElementType is not STRING