Class DataInputDecoder
- java.lang.Object
-
- org.apache.avro.io.Decoder
-
- org.apache.flink.formats.avro.utils.DataInputDecoder
-
public class DataInputDecoder extends org.apache.avro.io.Decoder
ADecoder
that reads from aDataInput
.
-
-
Constructor Summary
Constructors Constructor Description DataInputDecoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
arrayNext()
long
mapNext()
long
readArrayStart()
boolean
readBoolean()
ByteBuffer
readBytes(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()
String
readString()
org.apache.avro.util.Utf8
readString(org.apache.avro.util.Utf8 old)
static long
readVarLongCount(DataInput in)
void
setIn(DataInput in)
long
skipArray()
void
skipBytes()
void
skipFixed(int length)
long
skipMap()
void
skipString()
-
-
-
Method Detail
-
setIn
public void setIn(DataInput in)
-
readNull
public void readNull()
- Specified by:
readNull
in classorg.apache.avro.io.Decoder
-
readBoolean
public boolean readBoolean() throws IOException
- Specified by:
readBoolean
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readInt
public int readInt() throws IOException
- Specified by:
readInt
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readLong
public long readLong() throws IOException
- Specified by:
readLong
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Specified by:
readFloat
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Specified by:
readDouble
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readEnum
public int readEnum() throws IOException
- Specified by:
readEnum
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readFixed
public void readFixed(byte[] bytes, int start, int length) throws IOException
- Specified by:
readFixed
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readBytes
public ByteBuffer readBytes(ByteBuffer old) throws IOException
- Specified by:
readBytes
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
skipFixed
public void skipFixed(int length) throws IOException
- Specified by:
skipFixed
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
skipBytes
public void skipBytes() throws IOException
- Specified by:
skipBytes
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readString
public org.apache.avro.util.Utf8 readString(org.apache.avro.util.Utf8 old) throws IOException
- Specified by:
readString
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readString
public String readString() throws IOException
- Specified by:
readString
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
skipString
public void skipString() throws IOException
- Specified by:
skipString
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readArrayStart
public long readArrayStart() throws IOException
- Specified by:
readArrayStart
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
arrayNext
public long arrayNext() throws IOException
- Specified by:
arrayNext
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
skipArray
public long skipArray() throws IOException
- Specified by:
skipArray
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readMapStart
public long readMapStart() throws IOException
- Specified by:
readMapStart
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
mapNext
public long mapNext() throws IOException
- Specified by:
mapNext
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
skipMap
public long skipMap() throws IOException
- Specified by:
skipMap
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readIndex
public int readIndex() throws IOException
- Specified by:
readIndex
in classorg.apache.avro.io.Decoder
- Throws:
IOException
-
readVarLongCount
public static long readVarLongCount(DataInput in) throws IOException
- Throws:
IOException
-
-