Class JacksonHelper
java.lang.Object
org.apache.drill.exec.schema.json.jackson.JacksonHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
static final TypeProtos.MajorType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeProtos.MajorType
getFieldType
(com.fasterxml.jackson.core.JsonToken token, boolean repeated) static Object
getValueFromFieldType
(com.fasterxml.jackson.core.JsonParser parser, TypeProtos.MinorType fieldType)
-
Field Details
-
STRING_TYPE
-
REPEATED_STRING_TYPE
-
BOOLEAN_TYPE
-
REPEATED_BOOLEAN_TYPE
-
ARRAY_TYPE
-
MAP_TYPE
-
INT_TYPE
-
REPEATED_INT_TYPE
-
FLOAT_TYPE
-
REPEATED_FLOAT_TYPE
-
NULL_TYPE
-
-
Constructor Details
-
JacksonHelper
public JacksonHelper()
-
-
Method Details
-
getFieldType
public static TypeProtos.MajorType getFieldType(com.fasterxml.jackson.core.JsonToken token, boolean repeated) -
getValueFromFieldType
public static Object getValueFromFieldType(com.fasterxml.jackson.core.JsonParser parser, TypeProtos.MinorType fieldType) throws IOException - Throws:
IOException
-