Class ClickHouseHttpEntity

java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
com.clickhouse.client.http.ClickHouseHttpEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

public class ClickHouseHttpEntity extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
Used to encapsulate post request.
  • Constructor Details

    • ClickHouseHttpEntity

      protected ClickHouseHttpEntity(ClickHouseConfig config, String contentType, String contentEncoding, byte[] boundary, String sql, com.clickhouse.data.ClickHouseInputStream data, List<com.clickhouse.data.ClickHouseExternalTable> tables)
  • Method Details

    • getContent

      Throws:
      IOException
      UnsupportedOperationException
    • getContentLength

      public long getContentLength()
    • isRepeatable

      public boolean isRepeatable()
      Specified by:
      isRepeatable in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      isRepeatable in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
    • isStreaming

      public boolean isStreaming()
    • writeTo

      public void writeTo(OutputStream outStream) throws IOException
      Specified by:
      writeTo in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      writeTo in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
      Throws:
      IOException
    • close

      public void close() throws IOException
      Throws:
      IOException