Package com.clickhouse.client.http
Class ClickHouseHttpResponse
- java.lang.Object
-
- java.io.InputStream
-
- com.clickhouse.client.ClickHouseInputStream
-
- com.clickhouse.client.http.ClickHouseHttpResponse
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ClickHouseHttpResponse extends ClickHouseInputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected ClickHouseFormatformatprotected StringqueryIdprotected StringserverDisplayNameprotected ClickHouseResponseSummarysummaryprotected TimeZonetimeZone-
Fields inherited from class com.clickhouse.client.ClickHouseInputStream
EMPTY_BUFFER, EMPTY_BYTES
-
-
Constructor Summary
Constructors Constructor Description ClickHouseHttpResponse(ClickHouseHttpConnection connection, ClickHouseInputStream input, String serverDisplayName, String queryId, String summary, ClickHouseFormat format, TimeZone timeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()protected ClickHouseConfiggetConfig(ClickHouseRequest<?> request)booleanisClosed()booleanmarkSupported()intread()intread(byte[] b, int off, int len)bytereadByte()byte[]readBytes(int length)StringreadString(int byteLength, Charset charset)longskip(long n)-
Methods inherited from class com.clickhouse.client.ClickHouseInputStream
of, of, of, readAsciiString, readAsciiString, readString, readUnicodeString, readUnicodeString, readUnsignedByte, readVarInt
-
Methods inherited from class java.io.InputStream
mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Field Detail
-
serverDisplayName
protected final String serverDisplayName
-
queryId
protected final String queryId
-
format
protected final ClickHouseFormat format
-
timeZone
protected final TimeZone timeZone
-
summary
protected final ClickHouseResponseSummary summary
-
-
Constructor Detail
-
ClickHouseHttpResponse
public ClickHouseHttpResponse(ClickHouseHttpConnection connection, ClickHouseInputStream input, String serverDisplayName, String queryId, String summary, ClickHouseFormat format, TimeZone timeZone)
-
-
Method Detail
-
getConfig
protected ClickHouseConfig getConfig(ClickHouseRequest<?> request)
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein classClickHouseInputStream- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin classClickHouseInputStream
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
readBytes
public byte[] readBytes(int length) throws IOException- Overrides:
readBytesin classClickHouseInputStream- Throws:
IOException
-
readString
public String readString(int byteLength, Charset charset) throws IOException
- Overrides:
readStringin classClickHouseInputStream- Throws:
IOException
-
-