Class ByteBuddyUtils.ConvertType
java.lang.Object
org.apache.beam.sdk.schemas.utils.ByteBuddyUtils.TypeConversion<Type>
org.apache.beam.sdk.schemas.utils.ByteBuddyUtils.ConvertType
- Direct Known Subclasses:
AvroUtils.AvroConvertType
- Enclosing class:
ByteBuddyUtils
Give a Java type, returns the Java type expected for use with Row. For example, both
StringBuffer and String are represented as a String in Row. This determines
what the return type of the getter will be. For instance, the following POJO class:
class POJO {
StringBuffer str;
int[] array;
}
Generates the following getters:
FieldValueGetter<POJO, String>
FieldValueGetter<POJO, List<Integer>>-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeconvertArray(TypeDescriptor<?> type) protected TypeconvertByteBuffer(TypeDescriptor<?> type) protected TypeconvertCharSequence(TypeDescriptor<?> type) protected TypeconvertCollection(TypeDescriptor<?> type) protected TypeconvertDateTime(TypeDescriptor<?> type) protected TypeconvertDefault(TypeDescriptor<?> type) protected TypeconvertEnum(TypeDescriptor<?> type) protected TypeconvertIterable(TypeDescriptor<?> type) protected TypeconvertList(TypeDescriptor<?> type) protected TypeconvertMap(TypeDescriptor<?> type) protected TypeconvertPrimitive(TypeDescriptor<?> type) static TypeDescriptor<?> primitiveToWrapper(TypeDescriptor<?> typeDescriptor) Methods inherited from class org.apache.beam.sdk.schemas.utils.ByteBuddyUtils.TypeConversion
convert, shortCircuitReturnNull
-
Constructor Details
-
ConvertType
protected ConvertType(boolean returnRawTypes)
-
-
Method Details
-
convertArray
- Specified by:
convertArrayin classByteBuddyUtils.TypeConversion<Type>
-
convertCollection
- Specified by:
convertCollectionin classByteBuddyUtils.TypeConversion<Type>
-
convertList
- Specified by:
convertListin classByteBuddyUtils.TypeConversion<Type>
-
convertIterable
- Specified by:
convertIterablein classByteBuddyUtils.TypeConversion<Type>
-
convertMap
- Specified by:
convertMapin classByteBuddyUtils.TypeConversion<Type>
-
convertDateTime
- Specified by:
convertDateTimein classByteBuddyUtils.TypeConversion<Type>
-
convertByteBuffer
- Specified by:
convertByteBufferin classByteBuddyUtils.TypeConversion<Type>
-
convertCharSequence
- Specified by:
convertCharSequencein classByteBuddyUtils.TypeConversion<Type>
-
convertPrimitive
- Specified by:
convertPrimitivein classByteBuddyUtils.TypeConversion<Type>
-
convertEnum
- Specified by:
convertEnumin classByteBuddyUtils.TypeConversion<Type>
-
convertDefault
- Specified by:
convertDefaultin classByteBuddyUtils.TypeConversion<Type>
-
primitiveToWrapper
-