public static class TimeConversions.TimeMicrosConversion extends Conversion<LocalTime>
Constructor and Description |
---|
TimeMicrosConversion() |
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 |
fromLong(Long microsFromMidnight,
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() |
Long |
toLong(LocalTime time,
Schema schema,
LogicalType type) |
fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromInt, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecord
public Class<LocalTime> getConvertedType()
Conversion
getConvertedType
in class Conversion<LocalTime>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
in class Conversion<LocalTime>
public String adjustAndSetValue(String varName, String valParamName)
Conversion
adjustAndSetValue
in class Conversion<LocalTime>
public LocalTime fromLong(Long microsFromMidnight, Schema schema, LogicalType type)
fromLong
in class Conversion<LocalTime>
public Long toLong(LocalTime time, Schema schema, LogicalType type)
toLong
in class Conversion<LocalTime>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<LocalTime>
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.