@Experimental(value=SCHEMAS) public class RowJson extends java.lang.Object
Rows
.
Supports converting between JSON primitive types and:
Schema.TypeName#BYTE
Schema.TypeName#INT16
Schema.TypeName#INT32
Schema.TypeName#INT64
Schema.TypeName#FLOAT
Schema.TypeName#DOUBLE
Schema.TypeName#BOOLEAN
Schema.TypeName#STRING
Schema.TypeName#DECIMAL
Schema.TypeName#DATETIME
Modifier and Type | Class and Description |
---|---|
static class |
RowJson.RowJsonDeserializer
Jackson deserializer for parsing JSON into
Rows . |
static class |
RowJson.RowJsonSerializer
Jackson serializer for converting
Rows to JSON. |
static class |
RowJson.UnsupportedRowJsonException
Gets thrown when Row parsing or serialization fails for any reason.
|
Constructor and Description |
---|
RowJson() |
Modifier and Type | Method and Description |
---|---|
static void |
verifySchemaSupported(Schema schema)
Throws
RowJson.UnsupportedRowJsonException if schema contains an unsupported field
type. |
public static void verifySchemaSupported(Schema schema)
RowJson.UnsupportedRowJsonException
if schema
contains an unsupported field
type.