Package io.trino.hive.formats
Class TrinoDataInputStream
java.lang.Object
java.io.InputStream
io.trino.hive.formats.TrinoDataInputStream
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionTrinoDataInputStream(TrinoInputStream inputStream) TrinoDataInputStream(TrinoInputStream inputStream, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()longgetPos()longlonglongvoidmark(int readLimit) Deprecated.booleanDeprecated.intread()intread(byte[] destination) intread(byte[] destination, int destinationIndex, int length) booleanbytereadByte()charreadChar()Deprecated.doublefloatvoidreadFully(byte[] destination) voidreadFully(byte[] destination, int destinationIndex, int length) voidreadFully(io.airlift.slice.Slice destination) voidreadFully(io.airlift.slice.Slice destination, int destinationIndex, int length) voidreadFully(OutputStream out, int length) intreadInt()readLine()Deprecated.longreadLong()shortio.airlift.slice.SlicereadSlice(int length) intlongGets an unsigned 32-bit integer at the currentpositionand increases thepositionby4in this buffer.intreadUTF()Deprecated.voidreset()Deprecated.voidseek(long newPos) longskip(long length) intskipBytes(int n) Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
TrinoDataInputStream
-
TrinoDataInputStream
-
-
Method Details
-
getReadTimeNanos
public long getReadTimeNanos() -
getReadBytes
public long getReadBytes() -
getPos
- Throws:
IOException
-
seek
- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readUnsignedInt
Gets an unsigned 32-bit integer at the currentpositionand increases thepositionby4in this buffer.- Throws:
IndexOutOfBoundsException- ifthis.available()is less than4IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readSlice
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
public void readFully(io.airlift.slice.Slice destination, int destinationIndex, int length) throws IOException - Throws:
IOException
-
readFully
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getRetainedSize
public long getRetainedSize() -
mark
Deprecated.- Overrides:
markin classInputStream
-
reset
Deprecated.- Overrides:
resetin classInputStream
-
markSupported
Deprecated.- Overrides:
markSupportedin classInputStream
-
readChar
Deprecated. -
readLine
Deprecated. -
readUTF
Deprecated.
-