@API.Public public class Types extends Object
Type
.Modifier and Type | Field and Description |
---|---|
static String |
TAG_BINARY
Deprecated.
|
static String |
TAG_BYTE
Deprecated.
|
static String |
TAG_DATE
Deprecated.
|
static String |
TAG_DECIMAL
Deprecated.
|
static String |
TAG_FLOAT
Deprecated.
|
static String |
TAG_INT
Deprecated.
|
static String |
TAG_INTERVAL
Deprecated.
|
static String |
TAG_LONG
Deprecated.
|
static String |
TAG_SHORT
Deprecated.
|
static String |
TAG_TIME
Deprecated.
|
static String |
TAG_TIMESTAMP
Deprecated.
|
static com.google.common.collect.BiMap<Value.Type,DocumentReader.EventType> |
TYPE_EVENTTYPE_MAP |
Constructor and Description |
---|
Types() |
Modifier and Type | Method and Description |
---|---|
static DocumentReader.EventType |
getEventTypeForType(Value.Type type)
Returns the
EventType for the specified Type . |
static Value.Type |
getTypeForEventType(DocumentReader.EventType event)
Returns the
Type for the specified EventType . |
static String |
getTypeTag(Value.Type type) |
static String |
getTypeTag(Value value) |
static boolean |
isExtendedType(Value.Type type) |
static boolean |
isExtendedType(Value value) |
@Deprecated public static final String TAG_BINARY
@Deprecated public static final String TAG_INTERVAL
@Deprecated public static final String TAG_TIMESTAMP
@Deprecated public static final String TAG_TIME
@Deprecated public static final String TAG_DATE
@Deprecated public static final String TAG_DECIMAL
@Deprecated public static final String TAG_LONG
@Deprecated public static final String TAG_BYTE
@Deprecated public static final String TAG_SHORT
@Deprecated public static final String TAG_INT
@Deprecated public static final String TAG_FLOAT
public static final com.google.common.collect.BiMap<Value.Type,DocumentReader.EventType> TYPE_EVENTTYPE_MAP
public static boolean isExtendedType(@API.NonNullable Value value)
value
- a Value
that should tested.true
if the given value is not of an intrinsic
JSON type.public static boolean isExtendedType(@API.NonNullable Value.Type type)
type
- a Type
that should testedtrue
if the given type is not an intrinsic
JSON typepublic static String getTypeTag(@API.NonNullable Value value)
value
- a Value
whose tag name should be returnedString
representing the extended tag name of the
Type
of the given value, if the type is not of an
intrinsic JSON type, otherwise null
public static String getTypeTag(@API.NonNullable Value.Type type)
type
- a Type
whose tag name should be returnedString
representing the extended tag name of the
given Type
if the type is not of an intrinsic JSON
type, otherwise null
public static DocumentReader.EventType getEventTypeForType(@API.NonNullable Value.Type type)
EventType
for the specified Type
.type
- the Type
to lookupEventType
public static Value.Type getTypeForEventType(@API.NonNullable DocumentReader.EventType event)
Type
for the specified EventType
.event
- the EventType
to lookupType
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.