Package org.apache.avro
Class Conversions.UUIDConversion
- Enclosing class:
Conversions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromCharSequence(CharSequence value, Schema schema, LogicalType type) fromFixed(GenericFixed value, Schema schema, LogicalType type) Return the Java class representing the logical type.Return the logical type this class converts.toCharSequence(UUID value, Schema schema, LogicalType type) toFixed(UUID value, Schema schema, LogicalType type) Methods inherited from class org.apache.avro.Conversion
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromDouble, fromEnumSymbol, fromFloat, fromInt, fromLong, fromMap, fromRecord, toArray, toBoolean, toBytes, toDouble, toEnumSymbol, toFloat, toInt, toLong, toMap, toRecord
-
Constructor Details
-
UUIDConversion
public UUIDConversion()
-
-
Method Details
-
getConvertedType
Description copied from class:ConversionReturn the Java class representing the logical type.- Specified by:
getConvertedTypein classConversion<UUID>- Returns:
- a Java class returned by from methods and accepted by to methods
-
getRecommendedSchema
- Overrides:
getRecommendedSchemain classConversion<UUID>
-
getLogicalTypeName
Description copied from class:ConversionReturn the logical type this class converts.- Specified by:
getLogicalTypeNamein classConversion<UUID>- Returns:
- a String logical type name
-
fromCharSequence
- Overrides:
fromCharSequencein classConversion<UUID>
-
toCharSequence
- Overrides:
toCharSequencein classConversion<UUID>
-
fromFixed
- Overrides:
fromFixedin classConversion<UUID>
-
toFixed
- Overrides:
toFixedin classConversion<UUID>
-