public static enum Value.Type extends Enum<Value.Type>
Enum Constant and Description |
---|
ARRAY
A list of
Value . |
BINARY
Uninterpreted sequence of bytes.
|
BOOLEAN
A boolean value.
|
BYTE
8-bit signed integer.
|
DATE
32-bit integer representing the number of DAYS since Unix epoch,
i.e.
|
DECIMAL
Arbitrary precision, fixed point decimal value.
|
DOUBLE
Double-precision 64-bit floating point number.
|
FLOAT
Single-precision 32-bit floating point number.
|
INT
.
|
INTERVAL
A value representing a period of time between two instants.
|
LONG
64-bit signed integer.
|
MAP
Mapping of String and
Value . |
NULL
A non-existing value of unknown type and quantity.
|
SHORT
16-bit signed integer.
|
STRING
Character sequence.
|
TIME
32-bit integer representing time of the day in milliseconds.
|
TIMESTAMP
64-bit integer representing the number of milliseconds since epoch,
i.e.
|
Modifier and Type | Method and Description |
---|---|
byte |
getCode() |
String |
getTagName() |
boolean |
isIntrinsic() |
boolean |
isNumeric() |
boolean |
isScalar() |
static Value.Type |
valueOf(int typeCode) |
static Value.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Value.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Value.Type NULL
public static final Value.Type BOOLEAN
public static final Value.Type STRING
public static final Value.Type BYTE
public static final Value.Type SHORT
public static final Value.Type INT
public static final Value.Type LONG
public static final Value.Type FLOAT
public static final Value.Type DOUBLE
public static final Value.Type DECIMAL
public static final Value.Type DATE
public static final Value.Type TIME
public static final Value.Type TIMESTAMP
public static final Value.Type INTERVAL
public static final Value.Type BINARY
public static final Value.Type MAP
Value
.public static final Value.Type ARRAY
Value
.public static Value.Type[] values()
for (Value.Type c : Value.Type.values()) System.out.println(c);
public static Value.Type 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 byte getCode()
public String getTagName()
null
for intrinsic JSON types.public boolean isIntrinsic()
public boolean isScalar()
public boolean isNumeric()
public static Value.Type valueOf(int typeCode)
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.