RunLengthByteWriter (ORC Core 1.6.5 API)
Date: 2020-10-01

org.apache.orc.impl

## Class RunLengthByteWriter

- java.lang.Object
- - org.apache.orc.impl.RunLengthByteWriter

-     public class RunLengthByteWriter
      extends Object

  A streamFactory that writes a sequence of bytes. A control byte is written before each run with positive values 0 to 127 meaning 2 to 129 repetitions. If the bytes is -1 to -128, 1 to 128 literal byte values follow.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RunLengthByteWriter(PositionedOutputStream output)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `changeIv(Consumer<byte[]> modifier)`
    `long` | `estimateMemory()`
    `void` | `flush()`
    `void` | `getPosition(PositionRecorder recorder)`
    `void` | `write(byte value)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RunLengthByteWriter

          public RunLengthByteWriter(PositionedOutputStream output)

  - ### Method Detail

    - #### flush

          public void flush()
                     throws IOException

      Throws:
        `IOException`

    - #### write

          public void write(byte value)
                     throws IOException

      Throws:
        `IOException`

    - #### getPosition

          public void getPosition(PositionRecorder recorder)
                           throws IOException

      Throws:
        `IOException`

    - #### estimateMemory

          public long estimateMemory()

    - #### changeIv

          public void changeIv(Consumer<byte[]> modifier)

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.