Package org.apache.orc.impl
Class InStream.UncompressedStream
java.lang.Object
java.io.InputStream
org.apache.orc.impl.InStream
org.apache.orc.impl.InStream.UncompressedStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
InStream.EncryptedStream
- Enclosing class:
- InStream
Implements a stream over an uncompressed stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.orc.impl.InStream
InStream.CompressedStream, InStream.EncryptedStream, InStream.StreamOptions, InStream.UncompressedStream
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected org.apache.hadoop.hive.common.io.DiskRangeList
protected ByteBuffer
-
Constructor Summary
ConstructorDescriptionUncompressedStream
(Object name, long offset, long length) Create the stream without calling reset on it.UncompressedStream
(Object name, org.apache.hadoop.hive.common.io.DiskRangeList input, long offset, long length) -
Method Summary
Modifier and TypeMethodDescriptionint
void
void
close()
int
read()
int
read
(byte[] data, int offset, int length) void
seek
(long desired) void
seek
(PositionProvider index) protected void
setCurrent
(org.apache.hadoop.hive.common.io.DiskRangeList newRange, boolean isJump) Set the current rangetoString()
Methods inherited from class org.apache.orc.impl.InStream
create, create, createCodedInputStream, options, reset, reset
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
decrypted
-
currentRange
protected org.apache.hadoop.hive.common.io.DiskRangeList currentRange -
currentOffset
protected long currentOffset
-
-
Constructor Details
-
UncompressedStream
Create the stream without calling reset on it. This is used for the subclass that needs to do more setup.- Parameters:
name
- name of the streamlength
- the number of bytes for the stream
-
UncompressedStream
public UncompressedStream(Object name, org.apache.hadoop.hive.common.io.DiskRangeList input, long offset, long length)
-
-
Method Details
-
read
public int read()- Specified by:
read
in classInputStream
-
setCurrent
protected void setCurrent(org.apache.hadoop.hive.common.io.DiskRangeList newRange, boolean isJump) Description copied from class:InStream
Set the current range- Specified by:
setCurrent
in classInStream
- Parameters:
newRange
- the block that is currentisJump
- if this was a seek instead of a natural read
-
read
public int read(byte[] data, int offset, int length) - Overrides:
read
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
close
public void close() -
changeIv
-
seek
- Specified by:
seek
in classInStream
- Throws:
IOException
-
seek
- Throws:
IOException
-
toString
-