Class BinaryReaderBackedRecord
java.lang.Object
com.clickhouse.client.api.data_formats.internal.BinaryReaderBackedRecord
- All Implemented Interfaces:
GenericRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimal(int index) Reads column with name `colName` as a BigDecimal.getBigDecimal(String colName) Reads column with name `colName` as a BigDecimal.getBigInteger(int index) Reads column with name `colName` as a BigInteger.getBigInteger(String colName) Reads column with name `colName` as a BigInteger.booleangetBoolean(int index) Reads column with name `colName` as a boolean.booleangetBoolean(String colName) Reads column with name `colName` as a boolean.boolean[]getBooleanArray(int index) boolean[]getBooleanArray(String colName) bytegetByte(int index) Reads column with name `colName` as a byte.byteReads column with name `colName` as a byte.byte[]getByteArray(int index) Reads column with name `colName` as a string.byte[]getByteArray(String colName) Reads column with name `colName` as a string.getClickHouseBitmap(int index) getClickHouseBitmap(String colName) doublegetDouble(int index) Reads column with name `colName` as a double.doubleReads column with name `colName` as a double.double[]getDoubleArray(int index) Reads column with name `colName` as a string.double[]getDoubleArray(String colName) Reads column with name `colName` as a string.getDuration(int index) Returns the value of the specified column as a Duration.getDuration(String colName) Returns the value of the specified column as a Duration.shortgetEnum16(int index) shortbytegetEnum8(int index) bytefloatgetFloat(int index) Reads column with name `colName` as a float.floatReads column with name `colName` as a float.float[]getFloatArray(int index) Reads column with name `colName` as a string.float[]getFloatArray(String colName) Reads column with name `colName` as a string.getGeoMultiPolygon(int index) Returns the value of the specified column as a ClickHouseGeoMultiPolygonValue.getGeoMultiPolygon(String colName) Returns the value of the specified column as a ClickHouseGeoMultiPolygonValue.getGeoPoint(int index) Returns the value of the specified column as a ClickHouseGeoPointValue.getGeoPoint(String colName) Returns the value of the specified column as a ClickHouseGeoPointValue.getGeoPolygon(int index) Returns the value of the specified column as a ClickHouseGeoPolygonValue.getGeoPolygon(String colName) Returns the value of the specified column as a ClickHouseGeoPolygonValue.getGeoRing(int index) Returns the value of the specified column as a ClickHouseGeoRingValue.getGeoRing(String colName) Returns the value of the specified column as a ClickHouseGeoRingValue.getInet4Address(int index) Returns the value of the specified column as an Inet4Address.getInet4Address(String colName) Returns the value of the specified column as an Inet4Address.getInet6Address(int index) Returns the value of the specified column as an Inet6Address.getInet6Address(String colName) Returns the value of the specified column as an Inet6Address.getInstant(int index) Returns the value of the specified column as an Instant.getInstant(String colName) Returns the value of the specified column as an Instant.int[]getIntArray(int index) Reads column with name `colName` as a string.int[]getIntArray(String colName) Reads column with name `colName` as a string.intgetInteger(int index) Reads column with name `colName` as an integer.intgetInteger(String colName) Reads column with name `colName` as an integer.<T> List<T>getList(int index) Reads column with name `colName` as a string.<T> List<T>Reads column with name `colName` as a string.getLocalDate(int index) getLocalDate(String colName) getLocalDateTime(int index) getLocalDateTime(String colName) longgetLong(int index) Reads column with name `colName` as a long.longReads column with name `colName` as a long.long[]getLongArray(int index) Reads column with name `colName` as a string.long[]getLongArray(String colName) Reads column with name `colName` as a string.getObject(int index) getOffsetDateTime(int index) getOffsetDateTime(String colName) shortgetShort(int index) Reads column with name `colName` as a short.shortReads column with name `colName` as a short.getString(int index) Reads column with name `colName` as a string.Reads column with name `colName` as a string.getTemporalAmount(int index) Returns the value of the specified column as a TemporalAmount.getTemporalAmount(String colName) Returns the value of the specified column as a TemporalAmount.Object[]getTuple(int index) Object[]getUUID(int index) Returns the value of the specified column as a UUID.Returns the value of the specified column as a UUID.Returns all values of this record in Map.getZonedDateTime(int index) Returns the value of the specified column as a ZonedDateTime.getZonedDateTime(String colName) Returns the value of the specified column as a ZonedDateTime.booleanhasValue(int colIndex) boolean
-
Constructor Details
-
BinaryReaderBackedRecord
-
-
Method Details
-
getString
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getStringin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getByte
Description copied from interface:GenericRecordReads column with name `colName` as a byte.- Specified by:
getBytein interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getShort
Description copied from interface:GenericRecordReads column with name `colName` as a short.- Specified by:
getShortin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getInteger
Description copied from interface:GenericRecordReads column with name `colName` as an integer.- Specified by:
getIntegerin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getLong
Description copied from interface:GenericRecordReads column with name `colName` as a long.- Specified by:
getLongin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getFloat
Description copied from interface:GenericRecordReads column with name `colName` as a float.- Specified by:
getFloatin interfaceGenericRecord- Returns:
-
getDouble
Description copied from interface:GenericRecordReads column with name `colName` as a double.- Specified by:
getDoublein interfaceGenericRecord- Returns:
-
getBoolean
Description copied from interface:GenericRecordReads column with name `colName` as a boolean.- Specified by:
getBooleanin interfaceGenericRecord- Returns:
-
getBigInteger
Description copied from interface:GenericRecordReads column with name `colName` as a BigInteger.- Specified by:
getBigIntegerin interfaceGenericRecord- Returns:
-
getBigDecimal
Description copied from interface:GenericRecordReads column with name `colName` as a BigDecimal.- Specified by:
getBigDecimalin interfaceGenericRecord- Returns:
-
getInstant
Description copied from interface:GenericRecordReturns the value of the specified column as an Instant. Timezone is derived from the column definition. If no timezone is specified in the column definition then UTC will be used. If column value is Date or Date32 it will return an Instant with time set to 00:00:00. If column value is DateTime or DateTime32 it will return an Instant with the time part.- Specified by:
getInstantin interfaceGenericRecord- Returns:
-
getZonedDateTime
Description copied from interface:GenericRecordReturns the value of the specified column as a ZonedDateTime. Timezone is derived from the column definition. If no timezone is specified in the column definition then UTC will be used. If column value is Date or Date32 it will return a ZonedDateTime with time set to 00:00:00. If column value is DateTime or DateTime32 it will return a ZonedDateTime with the time part.- Specified by:
getZonedDateTimein interfaceGenericRecord- Returns:
-
getDuration
Description copied from interface:GenericRecordReturns the value of the specified column as a Duration. If a stored value is bigger than Long.MAX_VALUE then exception will be thrown. In such case use asBigInteger() method. If value of IntervalQuarter then Duration will be in the unit of Months.- Specified by:
getDurationin interfaceGenericRecord- Returns:
- Duration in the unit of column type.
-
getTemporalAmount
Description copied from interface:GenericRecordReturns the value of the specified column as a TemporalAmount. Period is used for dates and Duration is used for times.- Specified by:
getTemporalAmountin interfaceGenericRecord- Returns:
- TemporalAmount in the unit of column type.
-
getInet4Address
Description copied from interface:GenericRecordReturns the value of the specified column as an Inet4Address.- Specified by:
getInet4Addressin interfaceGenericRecord- Returns:
-
getInet6Address
Description copied from interface:GenericRecordReturns the value of the specified column as an Inet6Address.- Specified by:
getInet6Addressin interfaceGenericRecord- Returns:
-
getUUID
Description copied from interface:GenericRecordReturns the value of the specified column as a UUID.- Specified by:
getUUIDin interfaceGenericRecord- Returns:
-
getGeoPoint
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoPointValue.- Specified by:
getGeoPointin interfaceGenericRecord- Returns:
-
getGeoRing
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoRingValue.- Specified by:
getGeoRingin interfaceGenericRecord- Returns:
-
getGeoPolygon
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoPolygonValue.- Specified by:
getGeoPolygonin interfaceGenericRecord- Returns:
-
getGeoMultiPolygon
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoMultiPolygonValue.- Specified by:
getGeoMultiPolygonin interfaceGenericRecord- Returns:
-
getList
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getListin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getByteArray
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getByteArrayin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getIntArray
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getIntArrayin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getLongArray
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getLongArrayin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getFloatArray
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getFloatArrayin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getDoubleArray
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getDoubleArrayin interfaceGenericRecord- Parameters:
colName- - column name- Returns:
-
getBooleanArray
- Specified by:
getBooleanArrayin interfaceGenericRecord
-
getString
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getStringin interfaceGenericRecord- Returns:
-
hasValue
public boolean hasValue(int colIndex) - Specified by:
hasValuein interfaceGenericRecord
-
hasValue
- Specified by:
hasValuein interfaceGenericRecord
-
getByte
public byte getByte(int index) Description copied from interface:GenericRecordReads column with name `colName` as a byte.- Specified by:
getBytein interfaceGenericRecord- Returns:
-
getShort
public short getShort(int index) Description copied from interface:GenericRecordReads column with name `colName` as a short.- Specified by:
getShortin interfaceGenericRecord- Returns:
-
getInteger
public int getInteger(int index) Description copied from interface:GenericRecordReads column with name `colName` as an integer.- Specified by:
getIntegerin interfaceGenericRecord- Returns:
-
getLong
public long getLong(int index) Description copied from interface:GenericRecordReads column with name `colName` as a long.- Specified by:
getLongin interfaceGenericRecord- Returns:
-
getFloat
public float getFloat(int index) Description copied from interface:GenericRecordReads column with name `colName` as a float. Warning: there is no overflow check for float.- Specified by:
getFloatin interfaceGenericRecord- Returns:
-
getDouble
public double getDouble(int index) Description copied from interface:GenericRecordReads column with name `colName` as a double. Warning: there is no overflow check for double.- Specified by:
getDoublein interfaceGenericRecord- Returns:
-
getBoolean
public boolean getBoolean(int index) Description copied from interface:GenericRecordReads column with name `colName` as a boolean.- Specified by:
getBooleanin interfaceGenericRecord- Returns:
-
getBigInteger
Description copied from interface:GenericRecordReads column with name `colName` as a BigInteger.- Specified by:
getBigIntegerin interfaceGenericRecord- Returns:
-
getBigDecimal
Description copied from interface:GenericRecordReads column with name `colName` as a BigDecimal.- Specified by:
getBigDecimalin interfaceGenericRecord- Returns:
-
getInstant
Description copied from interface:GenericRecordReturns the value of the specified column as an Instant. Timezone is derived from the column definition. If no timezone is specified in the column definition then UTC will be used. If column value is Date or Date32 it will return an Instant with time set to 00:00:00. If column value is DateTime or DateTime32 it will return an Instant with the time part.- Specified by:
getInstantin interfaceGenericRecord- Returns:
-
getZonedDateTime
Description copied from interface:GenericRecordReturns the value of the specified column as a ZonedDateTime. Timezone is derived from the column definition. If no timezone is specified in the column definition then UTC will be used. If column value is Date or Date32 it will return a ZonedDateTime with time set to 00:00:00. If column value is DateTime or DateTime32 it will return a ZonedDateTime with the time part.- Specified by:
getZonedDateTimein interfaceGenericRecord- Returns:
-
getDuration
Description copied from interface:GenericRecordReturns the value of the specified column as a Duration. If a stored value is bigger than Long.MAX_VALUE then exception will be thrown. In such case use asBigInteger() method. If value of IntervalQuarter then Duration will be in the unit of Months.- Specified by:
getDurationin interfaceGenericRecord- Returns:
- Duration in the unit of column type.
-
getTemporalAmount
Description copied from interface:GenericRecordReturns the value of the specified column as a TemporalAmount. Period is used for dates and Duration is used for times.- Specified by:
getTemporalAmountin interfaceGenericRecord- Returns:
- TemporalAmount in the unit of column type.
-
getInet4Address
Description copied from interface:GenericRecordReturns the value of the specified column as an Inet4Address.- Specified by:
getInet4Addressin interfaceGenericRecord- Returns:
-
getInet6Address
Description copied from interface:GenericRecordReturns the value of the specified column as an Inet6Address.- Specified by:
getInet6Addressin interfaceGenericRecord- Returns:
-
getUUID
Description copied from interface:GenericRecordReturns the value of the specified column as a UUID.- Specified by:
getUUIDin interfaceGenericRecord- Returns:
-
getGeoPoint
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoPointValue.- Specified by:
getGeoPointin interfaceGenericRecord- Returns:
-
getGeoRing
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoRingValue.- Specified by:
getGeoRingin interfaceGenericRecord- Returns:
-
getGeoPolygon
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoPolygonValue.- Specified by:
getGeoPolygonin interfaceGenericRecord- Returns:
-
getGeoMultiPolygon
Description copied from interface:GenericRecordReturns the value of the specified column as a ClickHouseGeoMultiPolygonValue.- Specified by:
getGeoMultiPolygonin interfaceGenericRecord- Returns:
-
getList
Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getListin interfaceGenericRecord- Parameters:
index- - column name- Returns:
-
getByteArray
public byte[] getByteArray(int index) Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getByteArrayin interfaceGenericRecord- Parameters:
index- - column name- Returns:
-
getIntArray
public int[] getIntArray(int index) Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getIntArrayin interfaceGenericRecord- Parameters:
index- - column name- Returns:
-
getLongArray
public long[] getLongArray(int index) Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getLongArrayin interfaceGenericRecord- Parameters:
index- - column name- Returns:
-
getFloatArray
public float[] getFloatArray(int index) Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getFloatArrayin interfaceGenericRecord- Parameters:
index- - column name- Returns:
-
getDoubleArray
public double[] getDoubleArray(int index) Description copied from interface:GenericRecordReads column with name `colName` as a string.- Specified by:
getDoubleArrayin interfaceGenericRecord- Parameters:
index- - column name- Returns:
-
getBooleanArray
public boolean[] getBooleanArray(int index) - Specified by:
getBooleanArrayin interfaceGenericRecord
-
getTuple
- Specified by:
getTuplein interfaceGenericRecord
-
getTuple
- Specified by:
getTuplein interfaceGenericRecord
-
getEnum8
- Specified by:
getEnum8in interfaceGenericRecord
-
getEnum8
public byte getEnum8(int index) - Specified by:
getEnum8in interfaceGenericRecord
-
getEnum16
- Specified by:
getEnum16in interfaceGenericRecord
-
getEnum16
public short getEnum16(int index) - Specified by:
getEnum16in interfaceGenericRecord
-
getLocalDate
- Specified by:
getLocalDatein interfaceGenericRecord
-
getLocalDate
- Specified by:
getLocalDatein interfaceGenericRecord
-
getLocalDateTime
- Specified by:
getLocalDateTimein interfaceGenericRecord
-
getLocalDateTime
- Specified by:
getLocalDateTimein interfaceGenericRecord
-
getOffsetDateTime
- Specified by:
getOffsetDateTimein interfaceGenericRecord
-
getOffsetDateTime
- Specified by:
getOffsetDateTimein interfaceGenericRecord
-
getObject
- Specified by:
getObjectin interfaceGenericRecord
-
getObject
- Specified by:
getObjectin interfaceGenericRecord
-
getClickHouseBitmap
- Specified by:
getClickHouseBitmapin interfaceGenericRecord
-
getClickHouseBitmap
- Specified by:
getClickHouseBitmapin interfaceGenericRecord
-
getSchema
- Specified by:
getSchemain interfaceGenericRecord
-
getValues
Description copied from interface:GenericRecordReturns all values of this record in Map.- Specified by:
getValuesin interfaceGenericRecord- Returns:
- a Map of column names and values.
-