Class ClickHousePipedOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public abstract class ClickHousePipedOutputStream extends ClickHouseOutputStream
SPSC(Single-producer single-consumer) channel for streaming.
  • Constructor Details

    • ClickHousePipedOutputStream

      protected ClickHousePipedOutputStream(Runnable postCloseAction)
  • Method Details

    • getInputStream

      public final ClickHouseInputStream getInputStream()
      Gets input stream to reada data being written into the output stream.
      Returns:
      non-null input stream
    • getInputStream

      public abstract ClickHouseInputStream getInputStream(Runnable postCloseAction)
      Gets input stream to reada data being written into the output stream.
      Parameters:
      postCloseAction - custom action will be performed right after closing the input stream
      Returns:
      non-null input stream