Package ru.yandex.clickhouse
Class BodyEntityWrapper
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- ru.yandex.clickhouse.BodyEntityWrapper
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
public class BodyEntityWrapper extends org.apache.http.entity.AbstractHttpEntityAllow to inject sql query in the body, followed by row data
-
-
Constructor Summary
Constructors Constructor Description BodyEntityWrapper(String sql, org.apache.http.HttpEntity content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()longgetContentLength()booleanisRepeatable()booleanisStreaming()voidwriteTo(OutputStream outstream)
-
-
-
Constructor Detail
-
BodyEntityWrapper
public BodyEntityWrapper(String sql, org.apache.http.HttpEntity content)
-
-
Method Detail
-
isRepeatable
public boolean isRepeatable()
-
getContentLength
public long getContentLength()
-
getContent
public InputStream getContent() throws IOException, UnsupportedOperationException
-
writeTo
public void writeTo(OutputStream outstream) throws IOException
- Throws:
IOException
-
isStreaming
public boolean isStreaming()
-
-