Package com.clickhouse.client.http
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 Summary
ConstructorsModifierConstructorDescriptionprotectedClickHouseHttpEntity(ClickHouseConfig config, String contentType, String contentEncoding, byte[] boundary, String sql, com.clickhouse.data.ClickHouseInputStream data, List<com.clickhouse.data.ClickHouseExternalTable> tables) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longbooleanbooleanvoidwriteTo(OutputStream outStream) Methods inherited from class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
getContentEncoding, getContentType, getTrailerNames, getTrailers, isChunked, toString, writeTo
-
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
-
getContentLength
public long getContentLength() -
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
isStreaming
public boolean isStreaming() -
writeTo
- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity- Throws:
IOException
-
close
- Throws:
IOException
-