Class ValueReaders


  • public class ValueReaders
    extends java.lang.Object
    • Method Detail

      • nulls

        public static ValueReader<java.lang.Object> nulls()
      • booleans

        public static ValueReader<java.lang.Boolean> booleans()
      • ints

        public static ValueReader<java.lang.Integer> ints()
      • longs

        public static ValueReader<java.lang.Long> longs()
      • floats

        public static ValueReader<java.lang.Float> floats()
      • doubles

        public static ValueReader<java.lang.Double> doubles()
      • strings

        public static ValueReader<java.lang.String> strings()
      • utf8s

        public static ValueReader<org.apache.avro.util.Utf8> utf8s()
      • enums

        public static ValueReader<java.lang.String> enums​(java.util.List<java.lang.String> symbols)
      • uuids

        public static ValueReader<java.util.UUID> uuids()
      • fixed

        public static ValueReader<byte[]> fixed​(int length)
      • fixed

        public static ValueReader<org.apache.avro.generic.GenericData.Fixed> fixed​(org.apache.avro.Schema schema)
      • byteBuffers

        public static ValueReader<java.nio.ByteBuffer> byteBuffers()
      • decimal

        public static ValueReader<java.math.BigDecimal> decimal​(ValueReader<byte[]> unscaledReader,
                                                                int scale)
      • decimalBytesReader

        public static ValueReader<byte[]> decimalBytesReader​(org.apache.avro.Schema schema)
      • record

        public static ValueReader<org.apache.avro.generic.GenericData.Record> record​(java.util.List<ValueReader<?>> readers,
                                                                                     org.apache.avro.Schema recordSchema)
      • record

        public static <R extends org.apache.avro.generic.IndexedRecord> ValueReader<R> record​(java.util.List<ValueReader<?>> readers,
                                                                                              java.lang.Class<R> recordClass,
                                                                                              org.apache.avro.Schema recordSchema)