Package org.apache.avro
Class Conversions.UUIDConversion
- Enclosing class:
Conversions
-
Constructor Summary
-
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:Conversion
Return the Java class representing the logical type.- Specified by:
getConvertedType
in classConversion<UUID>
- Returns:
- a Java class returned by from methods and accepted by to methods
-
getRecommendedSchema
- Overrides:
getRecommendedSchema
in classConversion<UUID>
-
getLogicalTypeName
Description copied from class:Conversion
Return the logical type this class converts.- Specified by:
getLogicalTypeName
in classConversion<UUID>
- Returns:
- a String logical type name
-
fromCharSequence
- Overrides:
fromCharSequence
in classConversion<UUID>
-
toCharSequence
- Overrides:
toCharSequence
in classConversion<UUID>
-
fromFixed
- Overrides:
fromFixed
in classConversion<UUID>
-
toFixed
- Overrides:
toFixed
in classConversion<UUID>
-