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
FieldsModifier and TypeFieldDescriptionprotected longprotected org.apache.hadoop.hive.common.io.DiskRangeListprotected ByteBuffer -
Constructor Summary
ConstructorsConstructorDescriptionUncompressedStream(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 TypeMethodDescriptionintvoidvoidclose()intread()intread(byte[] data, int offset, int length) voidseek(long desired) voidseek(PositionProvider index) protected voidsetCurrent(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, resetMethods 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:
readin classInputStream
-
setCurrent
protected void setCurrent(org.apache.hadoop.hive.common.io.DiskRangeList newRange, boolean isJump) Description copied from class:InStreamSet the current range- Specified by:
setCurrentin 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:
readin classInputStream
-
available
public int available()- Overrides:
availablein classInputStream
-
close
public void close() -
changeIv
-
seek
- Specified by:
seekin classInStream- Throws:
IOException
-
seek
- Throws:
IOException
-
toString
-