Class AvroDatumFactory<T>

    • Field Detail

      • type

        protected final java.lang.Class<T> type
    • Constructor Detail

      • AvroDatumFactory

        public AvroDatumFactory​(java.lang.Class<T> type)
    • Method Detail

      • specific

        public static <T> AvroDatumFactory<T> specific​(java.lang.Class<T> type)
        Returns an AvroDatumFactory instance for the provided element type respecting Avro's Specific* suite for encoding and decoding.
      • reflect

        public static <T> AvroDatumFactory<T> reflect​(java.lang.Class<T> type)
        Returns an AvroDatumFactory instance for the provided element type respecting Avro's Reflect* suite for encoding and decoding.
      • of

        public static <T> AvroDatumFactory<T> of​(java.lang.Class<T> type,
                                                 boolean useReflectApi)
        Returns an AvroDatumFactory instance for the provided element type respecting Avro's Reflect* or Specific* suite for encoding and decoding.
      • getType

        public java.lang.Class<T> getType()
        Returns the type for the datum factory.
      • equals

        public boolean equals​(@Nullable java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object