public enum FeatureType extends java.lang.Enum<FeatureType>
Feature
types supposed by Galileo's native
data format.Enum Constant and Description |
---|
BINARY |
DOUBLE |
FLOAT |
INT |
INTERVAL_DOUBLE |
INTERVAL_FLOAT |
INTERVAL_INT |
INTERVAL_LONG |
LONG |
NULL |
STRING |
Modifier and Type | Method and Description |
---|---|
static FeatureType |
fromInt(int i)
Determine the FeatureType associated with the given integer.
|
static <T> FeatureType |
fromPrimitiveType(T type)
Basic Feature types based on Java classes can be ascertained by
inspecting their generic parameters.
|
boolean |
isInterval()
Determines whether this FeatureType is an interval type (represented by
an
IntervalFeatureData instance). |
java.lang.Class<? extends galileo.dataset.feature.FeatureData<?>> |
toClass()
Provides a mapping between FeatureType elements and their corresponding
FeatureData implementations.
|
int |
toInt() |
static FeatureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FeatureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FeatureType NULL
public static final FeatureType INT
public static final FeatureType LONG
public static final FeatureType FLOAT
public static final FeatureType DOUBLE
public static final FeatureType INTERVAL_INT
public static final FeatureType INTERVAL_LONG
public static final FeatureType INTERVAL_FLOAT
public static final FeatureType INTERVAL_DOUBLE
public static final FeatureType STRING
public static final FeatureType BINARY
public static FeatureType[] values()
for (FeatureType c : FeatureType.values()) System.out.println(c);
public static FeatureType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int toInt()
public boolean isInterval()
IntervalFeatureData
instance).public static FeatureType fromInt(int i)
i
- Integer representing a FeatureType element.public static <T> FeatureType fromPrimitiveType(T type)
type
- The basic Java type to inspectpublic java.lang.Class<? extends galileo.dataset.feature.FeatureData<?>> toClass()