public static class TimeConversions.TimeMillisConversion extends Conversion<LocalTime>
| Constructor and Description |
|---|
TimeMillisConversion() |
| Modifier and Type | Method and Description |
|---|---|
String |
adjustAndSetValue(String varName,
String valParamName)
Certain logical types may require adjusting the code within the "setter"
methods to make sure the data that is set is properly formatted.
|
LocalTime |
fromInt(Integer millisFromMidnight,
Schema schema,
LogicalType type) |
Class<LocalTime> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Schema |
getRecommendedSchema() |
Integer |
toInt(LocalTime time,
Schema schema,
LogicalType type) |
fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromLong, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toLong, toMap, toRecordpublic Class<LocalTime> getConvertedType()
ConversiongetConvertedType in class Conversion<LocalTime>public String getLogicalTypeName()
ConversiongetLogicalTypeName in class Conversion<LocalTime>public String adjustAndSetValue(String varName, String valParamName)
ConversionadjustAndSetValue in class Conversion<LocalTime>varName - the name of the variable holding the converted valuevalParamName - the name of the parameter with the new converted valuepublic LocalTime fromInt(Integer millisFromMidnight, Schema schema, LogicalType type)
fromInt in class Conversion<LocalTime>public Integer toInt(LocalTime time, Schema schema, LogicalType type)
toInt in class Conversion<LocalTime>public Schema getRecommendedSchema()
getRecommendedSchema in class Conversion<LocalTime>Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.