public class DataTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableMap<java.lang.Integer,java.util.Set<DataType>> |
ALLOWED_CONVERSIONS |
static BooleanType |
BOOLEAN |
static ByteType |
BYTE |
static DoubleType |
DOUBLE |
static FloatType |
FLOAT |
static GeoPointType |
GEO_POINT |
static GeoShapeType |
GEO_SHAPE |
static IntegerType |
INTEGER |
static IpType |
IP |
static LongType |
LONG |
static NotSupportedType |
NOT_SUPPORTED |
static com.google.common.collect.ImmutableList<DataType> |
NUMERIC_PRIMITIVE_TYPES |
static ObjectType |
OBJECT |
static com.google.common.collect.ImmutableList<DataType> |
PRIMITIVE_TYPES |
static ShortType |
SHORT |
static StringType |
STRING |
static TimestampType |
TIMESTAMP |
static java.util.Map<java.lang.Integer,DataTypeFactory> |
TYPE_REGISTRY |
static UndefinedType |
UNDEFINED
If you add types here make sure to update the SizeEstimatorFactory in the SQL module.
|
Constructor and Description |
---|
DataTypes() |
Modifier and Type | Method and Description |
---|---|
static DataType |
fromStream(org.elasticsearch.common.io.stream.StreamInput in) |
static Streamer<?>[] |
getStreamer(java.util.Collection<? extends DataType> dataTypes) |
static DataType<?> |
guessType(java.lang.Object value) |
static DataType<?> |
guessType(java.lang.Object value,
boolean strict) |
static boolean |
isCollectionType(DataType type) |
static boolean |
isPrimitive(DataType type) |
static DataType |
ofJsonObject(java.lang.Object type) |
static DataType |
ofMappingName(java.lang.String name) |
static DataType |
ofMappingNameSafe(java.lang.String name) |
static DataType |
ofName(java.lang.String name) |
static void |
register(int id,
DataTypeFactory dataTypeFactory) |
static void |
toStream(DataType type,
org.elasticsearch.common.io.stream.StreamOutput out) |
public static final UndefinedType UNDEFINED
public static final NotSupportedType NOT_SUPPORTED
public static final ByteType BYTE
public static final BooleanType BOOLEAN
public static final StringType STRING
public static final IpType IP
public static final DoubleType DOUBLE
public static final FloatType FLOAT
public static final ShortType SHORT
public static final IntegerType INTEGER
public static final LongType LONG
public static final TimestampType TIMESTAMP
public static final ObjectType OBJECT
public static final GeoPointType GEO_POINT
public static final GeoShapeType GEO_SHAPE
public static final com.google.common.collect.ImmutableList<DataType> PRIMITIVE_TYPES
public static final com.google.common.collect.ImmutableList<DataType> NUMERIC_PRIMITIVE_TYPES
public static final java.util.Map<java.lang.Integer,DataTypeFactory> TYPE_REGISTRY
public static final com.google.common.collect.ImmutableMap<java.lang.Integer,java.util.Set<DataType>> ALLOWED_CONVERSIONS
public static boolean isCollectionType(DataType type)
public static DataType fromStream(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
java.io.IOException
public static void toStream(DataType type, org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
java.io.IOException
public static DataType<?> guessType(java.lang.Object value)
public static DataType<?> guessType(java.lang.Object value, boolean strict)
public static DataType ofName(java.lang.String name)
@Nullable public static DataType ofMappingName(java.lang.String name)
public static DataType ofMappingNameSafe(java.lang.String name)
public static DataType ofJsonObject(java.lang.Object type)
public static boolean isPrimitive(DataType type)
public static void register(int id, DataTypeFactory dataTypeFactory)