public static class ProtoConversions.TimestampMillisConversion
extends org.apache.avro.Conversion<com.google.protobuf.Timestamp>
| Constructor and Description |
|---|
TimestampMillisConversion() |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Timestamp |
fromLong(Long millisFromEpoch,
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, toRecordpublic 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 millisFromEpoch, org.apache.avro.Schema schema, org.apache.avro.LogicalType type) throws IllegalArgumentException
fromLong in class org.apache.avro.Conversion<com.google.protobuf.Timestamp>IllegalArgumentExceptionpublic 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.