public class TypeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Object> |
getClass(Object value) |
static Class<?> |
getClass(org.apache.avro.Schema.Type type) |
static Class<?> |
getClass(org.apache.avro.Schema schema) |
static org.apache.avro.Schema |
getElementSchema(org.apache.avro.generic.GenericArray<?> array) |
static int |
getFixedSize(Class<?> clazz) |
static int |
getFixedSize(org.apache.avro.Schema.Type type) |
static int |
getFixedSize(org.apache.avro.Schema schema) |
static org.apache.avro.Schema |
getSchema(Class<?> clazz) |
static org.apache.avro.Schema |
getSchema(Object value) |
static org.apache.avro.Schema.Type |
getType(Class<?> clazz) |
static org.apache.avro.Schema.Type |
getType(Object value) |
public static org.apache.avro.Schema getSchema(Object value)
public static org.apache.avro.Schema.Type getType(Object value)
public static org.apache.avro.Schema.Type getType(Class<?> clazz)
public static Class<?> getClass(org.apache.avro.Schema.Type type)
public static org.apache.avro.Schema getSchema(Class<?> clazz)
public static Class<?> getClass(org.apache.avro.Schema schema)
public static int getFixedSize(org.apache.avro.Schema.Type type)
public static int getFixedSize(org.apache.avro.Schema schema)
public static int getFixedSize(Class<?> clazz)
public static org.apache.avro.Schema getElementSchema(org.apache.avro.generic.GenericArray<?> array)
Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.