Package org.apache.avro.io
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
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
-
Method Details
-
readBytes
- Overrides:
readBytes
in classorg.apache.avro.io.BinaryDecoder
- Throws:
IOException
-
readFloat
- Overrides:
readFloat
in classorg.apache.avro.io.BinaryDecoder
- Throws:
IOException
-
getRawBytes
-