Class NativeFormatReader
java.lang.Object
com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader
com.clickhouse.client.api.data_formats.NativeFormatReader
- All Implemented Interfaces:
ClickHouseBinaryFormatReader,AutoCloseable
For the backward compatibility server will not send TZ id in column type. Client should send version to a server
to get the correct column type.
(see: https://github.com/ClickHouse/ClickHouse/issues/38209)
-
Field Summary
Fields inherited from class com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader
binaryStreamReader, currentRecord, input, nextRecord, nextRecordEmpty, settings -
Constructor Summary
ConstructorsConstructorDescriptionNativeFormatReader(InputStream inputStream, QuerySettings settings, BinaryStreamReader.ByteBufferAllocator byteBufferAllocator) -
Method Summary
Methods inherited from class com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader
close, endReached, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBooleanArray, getBooleanArray, getByte, getByte, getByteArray, getByteArray, getClickHouseBitmap, getClickHouseBitmap, getConvertions, getDouble, getDouble, getDoubleArray, getDoubleArray, getDuration, getDuration, getEnum16, getEnum16, getEnum8, getEnum8, getFloat, getFloat, getFloatArray, getFloatArray, getGeoMultiPolygon, getGeoMultiPolygon, getGeoPoint, getGeoPoint, getGeoPolygon, getGeoPolygon, getGeoRing, getGeoRing, getInet4Address, getInet4Address, getInet6Address, getInet6Address, getInstant, getInstant, getIntArray, getIntArray, getInteger, getInteger, getList, getList, getLocalDate, getLocalDate, getLocalDateTime, getLocalDateTime, getLong, getLong, getLongArray, getLongArray, getOffsetDateTime, getOffsetDateTime, getSchema, getShort, getShort, getString, getString, getTemporalAmount, getTemporalAmount, getTuple, getTuple, getUUID, getUUID, getZonedDateTime, getZonedDateTime, hasNext, hasValue, hasValue, next, readAsString, readNextRecord, readToPOJO, setSchema
-
Constructor Details
-
NativeFormatReader
public NativeFormatReader(InputStream inputStream, QuerySettings settings, BinaryStreamReader.ByteBufferAllocator byteBufferAllocator)
-
-
Method Details
-
readRecord
Description copied from class:AbstractBinaryFormatReaderIt is still internal method and should be used with care. Usually this method is called to read next record into internal object and affects hasNext() method. So after calling this one: - hasNext(), next() should not be called - stream should be read with readRecord() method fully- Overrides:
readRecordin classAbstractBinaryFormatReader- Returns:
- Throws:
IOException
-
readValue
public <T> T readValue(int colIndex) Description copied from interface:ClickHouseBinaryFormatReaderReads a single value from the stream.- Specified by:
readValuein interfaceClickHouseBinaryFormatReader- Overrides:
readValuein classAbstractBinaryFormatReader- Returns:
-
readValue
Description copied from interface:ClickHouseBinaryFormatReaderReads a row to an array of objects.- Specified by:
readValuein interfaceClickHouseBinaryFormatReader- Overrides:
readValuein classAbstractBinaryFormatReader- Returns:
-