Class ByteBufferDataReader
java.lang.Object
java.io.InputStream
org.apache.hadoop.mapred.nativetask.buffer.DataInputStream
org.apache.hadoop.mapred.nativetask.buffer.ByteBufferDataReader
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
read data from a input buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanintread()intread(byte[] b, int off, int len) booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()longreadLong()shortintintfinal StringreadUTF()voidreset(InputBuffer buffer) intskipBytes(int n) Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferDataReader
-
-
Method Details
-
reset
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
readBoolean
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readUnsignedShort
- Throws:
IOException
-
readChar
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readLine
- Throws:
IOException
-
readUTF
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
hasUnReadData
public boolean hasUnReadData()- Specified by:
hasUnReadDatain classDataInputStream
-