public final class AvroUtil
extends java.lang.Object
| Constructor and Description |
|---|
AvroUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.Schema.Field[] |
flatSchema(org.apache.avro.Schema s)
The method "flattenize" the given Avro schema.
|
static boolean |
isSupportedSchema(org.apache.avro.Schema s)
Return true if the given schema can be transformed
into h2o type.
|
static byte |
schemaToColumnType(org.apache.avro.Schema s)
Transform Avro schema into H2O type.
|
static org.apache.avro.Schema.Type |
toPrimitiveType(org.apache.avro.Schema s)
Transform Avro schema into its primitive representation.
|
public static boolean isSupportedSchema(org.apache.avro.Schema s)
s - avro field schemapublic static byte schemaToColumnType(org.apache.avro.Schema s)
s - avro schemajava.lang.IllegalArgumentException - if schema is not supportedpublic static org.apache.avro.Schema.Type toPrimitiveType(org.apache.avro.Schema s)
s - avro schemajava.lang.IllegalArgumentException - if the schema has no primitive transformationpublic static org.apache.avro.Schema.Field[] flatSchema(org.apache.avro.Schema s)
s - Avro schema