public static class ProtoConversions.TimestampMicrosConversion
extends org.apache.avro.Conversion<com.google.protobuf.Timestamp>
Constructor and Description |
---|
TimestampMicrosConversion() |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.Timestamp |
fromLong(Long microsFromEpoch,
org.apache.avro.Schema schema,
org.apache.avro.LogicalType type) |
Class<com.google.protobuf.Timestamp> |
getConvertedType() |
String |
getLogicalTypeName() |
org.apache.avro.Schema |
getRecommendedSchema() |
Long |
toLong(com.google.protobuf.Timestamp value,
org.apache.avro.Schema schema,
org.apache.avro.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()
getConvertedType
in class org.apache.avro.Conversion<com.google.protobuf.Timestamp>
public String getLogicalTypeName()
getLogicalTypeName
in class org.apache.avro.Conversion<com.google.protobuf.Timestamp>
public com.google.protobuf.Timestamp fromLong(Long microsFromEpoch, org.apache.avro.Schema schema, org.apache.avro.LogicalType type) throws IllegalArgumentException
fromLong
in class org.apache.avro.Conversion<com.google.protobuf.Timestamp>
IllegalArgumentException
public Long toLong(com.google.protobuf.Timestamp value, org.apache.avro.Schema schema, org.apache.avro.LogicalType type)
toLong
in class org.apache.avro.Conversion<com.google.protobuf.Timestamp>
public org.apache.avro.Schema getRecommendedSchema()
getRecommendedSchema
in class org.apache.avro.Conversion<com.google.protobuf.Timestamp>
Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.