public static class ProtoConversions.TimestampMicrosConversion extends Conversion<com.google.protobuf.Timestamp>
Constructor and Description |
---|
TimestampMicrosConversion() |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.Timestamp |
fromLong(Long microsFromEpoch,
Schema schema,
LogicalType type) |
Class<com.google.protobuf.Timestamp> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Schema |
getRecommendedSchema() |
Long |
toLong(com.google.protobuf.Timestamp value,
Schema schema,
LogicalType type) |
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromInt, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecord
public Class<com.google.protobuf.Timestamp> getConvertedType()
Conversion
getConvertedType
in class Conversion<com.google.protobuf.Timestamp>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
in class Conversion<com.google.protobuf.Timestamp>
public com.google.protobuf.Timestamp fromLong(Long microsFromEpoch, Schema schema, LogicalType type) throws IllegalArgumentException
fromLong
in class Conversion<com.google.protobuf.Timestamp>
IllegalArgumentException
public Long toLong(com.google.protobuf.Timestamp value, Schema schema, LogicalType type)
toLong
in class Conversion<com.google.protobuf.Timestamp>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<com.google.protobuf.Timestamp>
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.