- java.lang.Object
-
- swim.avro.reflection.AvroReflection
-
public final class AvroReflection extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <I,T>
AvroArrayType<I,T>arrayType(Class<?> itemClass)
static <I,T>
AvroArrayType<I,T>arrayType(Class<?> itemClass, AvroType<? extends I> itemType)
static AvroBooleanType<Boolean>
booleanType()
static AvroVarintType<Byte>
byteType()
static AvroVarintType<Character>
charType()
static <T> AvroType<T>
classType(Class<?> type)
static AvroDataType<ByteBuffer>
dataType()
static AvroDoubleType<Double>
doubleType()
static <T extends Enum<T>>
AvroEnumType<T>enumType(Class<T> enumClass)
static <T extends Enum<T>>
AvroEnumType<T>enumType(String fullName, Class<T> enumClass)
static <T extends Enum<T>>
AvroEnumType<T>enumType(AvroName fullName, Class<T> enumClass)
static <R,V>
AvroFieldType<V,R>field(Field field, AvroType<? extends V> valueType)
static AvroFixedType<byte[]>
fixedType(String fullName, int size)
static AvroFixedType<byte[]>
fixedType(AvroName fullName, int size)
static AvroFloatType<Float>
floatType()
static AvroIntType<Integer>
intType()
static AvroLongType<Long>
longType()
static <V,T extends Map<String,V>>
AvroMapType<String,V,T>mapType(Class<?> mapClass, AvroType<? extends V> valueType)
static <V> AvroMapType<String,V,Map<String,V>>
mapType(AvroType<? extends V> valueType)
static <T> AvroNullType<T>
nullType()
static <T> AvroRecordType<T,T>
recordType(String fullName, Class<?> recordClass)
static <T> AvroRecordType<T,T>
recordType(AvroName fullName, Class<?> recordClass)
static AvroVarintType<Short>
shortType()
static AvroStringType<String>
stringType()
static <T> AvroUnionType<T>
unionType()
-
-
-
Method Detail
-
nullType
public static <T> AvroNullType<T> nullType()
-
booleanType
public static AvroBooleanType<Boolean> booleanType()
-
byteType
public static AvroVarintType<Byte> byteType()
-
shortType
public static AvroVarintType<Short> shortType()
-
intType
public static AvroIntType<Integer> intType()
-
longType
public static AvroLongType<Long> longType()
-
floatType
public static AvroFloatType<Float> floatType()
-
doubleType
public static AvroDoubleType<Double> doubleType()
-
charType
public static AvroVarintType<Character> charType()
-
dataType
public static AvroDataType<ByteBuffer> dataType()
-
stringType
public static AvroStringType<String> stringType()
-
recordType
public static <T> AvroRecordType<T,T> recordType(AvroName fullName, Class<?> recordClass)
-
recordType
public static <T> AvroRecordType<T,T> recordType(String fullName, Class<?> recordClass)
-
enumType
public static <T extends Enum<T>> AvroEnumType<T> enumType(AvroName fullName, Class<T> enumClass)
-
enumType
public static <T extends Enum<T>> AvroEnumType<T> enumType(String fullName, Class<T> enumClass)
-
enumType
public static <T extends Enum<T>> AvroEnumType<T> enumType(Class<T> enumClass)
-
arrayType
public static <I,T> AvroArrayType<I,T> arrayType(Class<?> itemClass, AvroType<? extends I> itemType)
-
arrayType
public static <I,T> AvroArrayType<I,T> arrayType(Class<?> itemClass)
-
mapType
public static <V,T extends Map<String,V>> AvroMapType<String,V,T> mapType(Class<?> mapClass, AvroType<? extends V> valueType)
-
mapType
public static <V> AvroMapType<String,V,Map<String,V>> mapType(AvroType<? extends V> valueType)
-
unionType
public static <T> AvroUnionType<T> unionType()
-
fixedType
public static AvroFixedType<byte[]> fixedType(AvroName fullName, int size)
-
fixedType
public static AvroFixedType<byte[]> fixedType(String fullName, int size)
-
field
public static <R,V> AvroFieldType<V,R> field(Field field, AvroType<? extends V> valueType)
-
-