public enum LogicalType extends Enum<LogicalType>
Class
or JavaType
).Enum Constant and Description |
---|
Array
Array types of other values.
|
Binary
Binary data such as
byte[] and ByteBuffer . |
Boolean
|
Collection
Collection values (and "Collection-like" for JVM
languages and datatype libraries with semantically similar types) |
DateTime
|
Enum
Various
Enum types. |
Float
|
Integer
|
Map
Map values (and "Map-like" for JVM
languages and datatype libraries with semantically similar types) |
OtherScalar
|
POJO
Types that are handled by default "set of key/value pairs" serialization,
also known as "Beans".
|
Textual
Purely textual types,
String and similar (but not types that
are generally expressed as Strings in input). |
Untyped
"Non-type", Type used to contained untyped, free-form content: maybe
a "Tree" (sometimes called "AST"), or buffer of some kind,
or even just nominal type of
Object |
Modifier and Type | Method and Description |
---|---|
static LogicalType |
fromClass(Class<?> raw,
LogicalType defaultIfNotRecognized)
Helper method to use for figuring out logical type from physical type,
in cases where caller wants a guess.
|
static LogicalType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogicalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogicalType Array
Note: excludes binary type byte[]
.
public static final LogicalType Collection
Collection
values (and "Collection-like" for JVM
languages and datatype libraries with semantically similar types)public static final LogicalType Map
Map
values (and "Map-like" for JVM
languages and datatype libraries with semantically similar types)public static final LogicalType POJO
In addition to user-defined types, also includes JDK types like:
public static final LogicalType Untyped
Object
public static final LogicalType Integer
public static final LogicalType Float
public static final LogicalType Boolean
public static final LogicalType Enum
Enum
types.public static final LogicalType Textual
String
and similar (but not types that
are generally expressed as Strings in input).public static final LogicalType Binary
byte[]
and ByteBuffer
.public static final LogicalType DateTime
public static final LogicalType OtherScalar
public static LogicalType[] values()
for (LogicalType c : LogicalType.values()) System.out.println(c);
public static LogicalType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LogicalType fromClass(Class<?> raw, LogicalType defaultIfNotRecognized)
Collection
,
Map
and Enum
cases; but not
more specific types (for example datatype-provided extension types).raw
- Type-erased class to classifydefaultIfNotRecognized
- if no type recognized, value to return
(for example, null
)Copyright © 2008–2021 FasterXML. All rights reserved.