public static class TimeConversions.TimestampMicrosConversion extends Conversion<Instant>
Constructor and Description |
---|
TimestampMicrosConversion() |
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.
|
Instant |
fromLong(Long microsFromEpoch,
Schema schema,
LogicalType type) |
Class<Instant> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Schema |
getRecommendedSchema() |
Long |
toLong(Instant instant,
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<Instant> getConvertedType()
Conversion
getConvertedType
in class Conversion<Instant>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
in class Conversion<Instant>
public String adjustAndSetValue(String varName, String valParamName)
Conversion
adjustAndSetValue
in class Conversion<Instant>
public Instant fromLong(Long microsFromEpoch, Schema schema, LogicalType type)
fromLong
in class Conversion<Instant>
public Long toLong(Instant instant, Schema schema, LogicalType type)
toLong
in class Conversion<Instant>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<Instant>
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.