Package org.apache.orc.impl
Class PositionedOutputStream
java.lang.Object
java.io.OutputStream
org.apache.orc.impl.PositionedOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
OutStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Change the current Initialization Vector (IV) for the encryption.abstract long
Get the memory size currently allocated as buffer associated with this stream.abstract void
getPosition
(PositionRecorder recorder) Record the current position to the recorder.Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, write
-
Constructor Details
-
PositionedOutputStream
public PositionedOutputStream()
-
-
Method Details
-
getPosition
Record the current position to the recorder.- Parameters:
recorder
- the object that receives the position- Throws:
IOException
-
getBufferSize
public abstract long getBufferSize()Get the memory size currently allocated as buffer associated with this stream.- Returns:
- the number of bytes used by buffers.
-
changeIv
Change the current Initialization Vector (IV) for the encryption. Has no effect if the stream is not encrypted.- Parameters:
modifier
- a function to modify the IV in place
-