Package ru.yandex.clickhouse
Class LZ4EntityWrapper
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- ru.yandex.clickhouse.LZ4EntityWrapper
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
public class LZ4EntityWrapper extends org.apache.http.entity.AbstractHttpEntity
-
-
Constructor Summary
Constructors Constructor Description LZ4EntityWrapper(org.apache.http.entity.AbstractHttpEntity content, int maxCompressBlockSize)LZ4EntityWrapper(org.apache.http.HttpEntity content, int maxCompressBlockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()longgetContentLength()booleanisRepeatable()booleanisStreaming()voidwriteTo(OutputStream outputStream)
-
-
-
Method Detail
-
isRepeatable
public boolean isRepeatable()
-
getContentLength
public long getContentLength()
-
getContent
public InputStream getContent() throws IOException, IllegalStateException
- Throws:
IOExceptionIllegalStateException
-
writeTo
public void writeTo(OutputStream outputStream) throws IOException
- Throws:
IOException
-
isStreaming
public boolean isStreaming()
-
-