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, NO_TYPE_HINT_MAPPING -
Constructor Summary
ConstructorsConstructorDescriptionNativeFormatReader(InputStream inputStream, QuerySettings settings, BinaryStreamReader.ByteBufferAllocator byteBufferAllocator) NativeFormatReader(InputStream inputStream, QuerySettings settings, BinaryStreamReader.ByteBufferAllocator byteBufferAllocator, Map<ClickHouseDataType, Class<?>> typeHintMapping) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanreadRecord(Object[] record) booleanreadRecord(Map<String, Object> record) It is still internal method and should be used with care.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, readValue, readValue, setSchema
-
Constructor Details
-
NativeFormatReader
public NativeFormatReader(InputStream inputStream, QuerySettings settings, BinaryStreamReader.ByteBufferAllocator byteBufferAllocator, Map<ClickHouseDataType, Class<?>> typeHintMapping) -
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() and get methods cannot be called - stream should be read with readRecord() method fully- Overrides:
readRecordin classAbstractBinaryFormatReader- Returns:
- Throws:
IOException
-
readRecord
- Overrides:
readRecordin classAbstractBinaryFormatReader- Throws:
IOException
-