Class OptimizedBinaryDecoder

java.lang.Object
org.apache.avro.io.Decoder
org.apache.avro.io.BinaryDecoder
org.apache.avro.io.OptimizedBinaryDecoder

public class OptimizedBinaryDecoder extends org.apache.avro.io.BinaryDecoder
This class is used to optimize bytes field decoding. It will wrap the original byte array as a byte buffer if the field type is 'bytes'(the default behavior in is to create a new byte array copy, which is not efficient. The reason to use package name: org.apache.avro.io since BinaryDecoder(byte[], int, int) is package-visible.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    float
     

    Methods inherited from class org.apache.avro.io.BinaryDecoder

    arrayNext, doReadBytes, doReadItemCount, doSkipBytes, inputStream, isEnd, mapNext, readArrayStart, readBoolean, readDouble, readEnum, readFixed, readIndex, readInt, readLong, readMapStart, readNull, readString, readString, skipArray, skipBytes, skipFixed, skipMap, skipString

    Methods inherited from class org.apache.avro.io.Decoder

    readFixed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait