public class DBObjectDecoder
extends org.apache.avro.io.Decoder
| Constructor and Description |
|---|
DBObjectDecoder(java.lang.Class<?> recordClass,
java.lang.Object object) |
DBObjectDecoder(org.apache.avro.Schema schema,
java.lang.Object object,
java.lang.ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
long |
arrayNext() |
long |
mapNext() |
long |
readArrayStart() |
boolean |
readBoolean() |
java.nio.ByteBuffer |
readBytes(java.nio.ByteBuffer old) |
double |
readDouble() |
int |
readEnum() |
void |
readFixed(byte[] bytes,
int start,
int length) |
float |
readFloat() |
int |
readIndex() |
int |
readInt() |
long |
readLong() |
long |
readMapStart() |
void |
readNull() |
java.lang.String |
readString() |
org.apache.avro.util.Utf8 |
readString(org.apache.avro.util.Utf8 old) |
long |
skipArray() |
void |
skipBytes() |
void |
skipFixed(int length) |
long |
skipMap() |
void |
skipString() |
public DBObjectDecoder(java.lang.Class<?> recordClass,
java.lang.Object object)
public DBObjectDecoder(org.apache.avro.Schema schema,
java.lang.Object object,
java.lang.ClassLoader classLoader)
public long arrayNext()
throws java.io.IOException
arrayNext in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic long mapNext()
throws java.io.IOException
mapNext in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic long readArrayStart()
throws java.io.IOException
readArrayStart in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic boolean readBoolean()
throws java.io.IOException
readBoolean in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic java.nio.ByteBuffer readBytes(java.nio.ByteBuffer old)
throws java.io.IOException
readBytes in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic int readEnum()
throws java.io.IOException
readEnum in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic void readFixed(byte[] bytes,
int start,
int length)
throws java.io.IOException
readFixed in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic int readIndex()
throws java.io.IOException
readIndex in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic long readMapStart()
throws java.io.IOException
readMapStart in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic void readNull()
throws java.io.IOException
readNull in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
readString in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic org.apache.avro.util.Utf8 readString(org.apache.avro.util.Utf8 old)
throws java.io.IOException
readString in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic long skipArray()
throws java.io.IOException
skipArray in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic void skipBytes()
throws java.io.IOException
skipBytes in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic void skipFixed(int length)
throws java.io.IOException
skipFixed in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic long skipMap()
throws java.io.IOException
skipMap in class org.apache.avro.io.Decoderjava.io.IOExceptionpublic void skipString()
throws java.io.IOException
skipString in class org.apache.avro.io.Decoderjava.io.IOException