public class FeatureTypeConfig extends java.lang.Object implements ConfigObj
<feature name>: {
type: <feature type>
}
2. For a complex feature type
<feature name>: {
type: {
type: <feature type>
tensorCategory: <category of the tensor: DENSE/SPARSE/RAGGED>
shape: <shape of the tensor type, only applicable to tensor>
dimensionType: <dimension type of the tensor type, only applicable to tensor>
valType: <Value type of the tensor type, only applicable to tensor>
}
}
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureTypeConfig.Builder
The builder for
FeatureTypeConfig |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIMENSION_TYPE |
static java.lang.String |
SHAPE |
static java.lang.String |
TENSOR_CATEGORY |
static java.lang.String |
TYPE |
static java.lang.String |
VAL_TYPE |
| Constructor and Description |
|---|
FeatureTypeConfig(@NonNull FeatureType featureType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getConfigStr()
The string of the serialized config object.
|
java.util.Optional<java.util.List<java.lang.String>> |
getDimensionTypes()
Array of the types for each dimension.
|
FeatureType |
getFeatureType() |
java.util.Optional<java.util.List<java.lang.Integer>> |
getShapes()
The shape (sometimes called the “size” or “dense shape”) of the tensor.
|
java.util.Optional<java.lang.String> |
getValType()
The value type.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String TYPE
public static final java.lang.String TENSOR_CATEGORY
public static final java.lang.String SHAPE
public static final java.lang.String DIMENSION_TYPE
public static final java.lang.String VAL_TYPE
public FeatureTypeConfig(@NonNull FeatureType featureType)
public FeatureType getFeatureType()
public java.util.Optional<java.util.List<java.lang.Integer>> getShapes()
public java.util.Optional<java.util.List<java.lang.String>> getDimensionTypes()
public java.util.Optional<java.lang.String> getValType()
public java.lang.String getConfigStr()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object