Class AvroJavaTimeConversions.DateConversion

  • Enclosing class:
    AvroJavaTimeConversions

    public static class AvroJavaTimeConversions.DateConversion
    extends org.apache.avro.Conversion<java.time.LocalDate>
    • Constructor Summary

      Constructors 
      Constructor Description
      DateConversion()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.LocalDate fromInt​(java.lang.Integer daysFromEpoch, org.apache.avro.Schema schema, org.apache.avro.LogicalType type)  
      java.lang.Class<java.time.LocalDate> getConvertedType()  
      java.lang.String getLogicalTypeName()  
      org.apache.avro.Schema getRecommendedSchema()  
      java.lang.Integer toInt​(java.time.LocalDate date, org.apache.avro.Schema schema, org.apache.avro.LogicalType type)  
      • Methods inherited from class org.apache.avro.Conversion

        adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromLong, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toLong, toMap, toRecord
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateConversion

        public DateConversion()
    • Method Detail

      • getConvertedType

        public java.lang.Class<java.time.LocalDate> getConvertedType()
        Specified by:
        getConvertedType in class org.apache.avro.Conversion<java.time.LocalDate>
      • getLogicalTypeName

        public java.lang.String getLogicalTypeName()
        Specified by:
        getLogicalTypeName in class org.apache.avro.Conversion<java.time.LocalDate>
      • fromInt

        public java.time.LocalDate fromInt​(java.lang.Integer daysFromEpoch,
                                           org.apache.avro.Schema schema,
                                           org.apache.avro.LogicalType type)
        Overrides:
        fromInt in class org.apache.avro.Conversion<java.time.LocalDate>
      • toInt

        public java.lang.Integer toInt​(java.time.LocalDate date,
                                       org.apache.avro.Schema schema,
                                       org.apache.avro.LogicalType type)
        Overrides:
        toInt in class org.apache.avro.Conversion<java.time.LocalDate>
      • getRecommendedSchema

        public org.apache.avro.Schema getRecommendedSchema()
        Overrides:
        getRecommendedSchema in class org.apache.avro.Conversion<java.time.LocalDate>