Class PositionedOutputStream

java.lang.Object
java.io.OutputStream
org.apache.orc.impl.PositionedOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
OutStream

public abstract class PositionedOutputStream extends OutputStream
  • Constructor Details

    • PositionedOutputStream

      public PositionedOutputStream()
  • Method Details

    • getPosition

      public abstract void getPosition(PositionRecorder recorder) throws IOException
      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

      public abstract void changeIv(Consumer<byte[]> modifier)
      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