Class ByteBuddyUtils.ConvertType
- java.lang.Object
-
- org.apache.beam.sdk.schemas.utils.ByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
- org.apache.beam.sdk.schemas.utils.ByteBuddyUtils.ConvertType
-
- Direct Known Subclasses:
AvroUtils.AvroConvertType
- Enclosing class:
- ByteBuddyUtils
public static class ByteBuddyUtils.ConvertType extends ByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
Give a Java type, returns the Java type expected for use with Row. For example, bothStringBuffer
andString
are represented as aString
in Row. This determines what the return type of the getter will be. For instance, the following POJO class:
Generates the following getters:class POJO { StringBuffer str; int[] array; }
FieldValueGetter<POJO, String>
FieldValueGetter<POJO, List<Integer>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConvertType(boolean returnRawTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.reflect.Type
convertArray(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertByteBuffer(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertCharSequence(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertCollection(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertDateTime(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertDefault(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertEnum(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertIterable(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertList(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertMap(TypeDescriptor<?> type)
protected java.lang.reflect.Type
convertPrimitive(TypeDescriptor<?> type)
-
Methods inherited from class org.apache.beam.sdk.schemas.utils.ByteBuddyUtils.TypeConversion
convert
-
-
-
-
Method Detail
-
convertArray
protected java.lang.reflect.Type convertArray(TypeDescriptor<?> type)
- Specified by:
convertArray
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertCollection
protected java.lang.reflect.Type convertCollection(TypeDescriptor<?> type)
- Specified by:
convertCollection
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertList
protected java.lang.reflect.Type convertList(TypeDescriptor<?> type)
- Specified by:
convertList
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertIterable
protected java.lang.reflect.Type convertIterable(TypeDescriptor<?> type)
- Specified by:
convertIterable
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertMap
protected java.lang.reflect.Type convertMap(TypeDescriptor<?> type)
- Specified by:
convertMap
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertDateTime
protected java.lang.reflect.Type convertDateTime(TypeDescriptor<?> type)
- Specified by:
convertDateTime
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertByteBuffer
protected java.lang.reflect.Type convertByteBuffer(TypeDescriptor<?> type)
- Specified by:
convertByteBuffer
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertCharSequence
protected java.lang.reflect.Type convertCharSequence(TypeDescriptor<?> type)
- Specified by:
convertCharSequence
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertPrimitive
protected java.lang.reflect.Type convertPrimitive(TypeDescriptor<?> type)
- Specified by:
convertPrimitive
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertEnum
protected java.lang.reflect.Type convertEnum(TypeDescriptor<?> type)
- Specified by:
convertEnum
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
convertDefault
protected java.lang.reflect.Type convertDefault(TypeDescriptor<?> type)
- Specified by:
convertDefault
in classByteBuddyUtils.TypeConversion<java.lang.reflect.Type>
-
-