Class BinaryStreamReader
java.lang.Object
com.clickhouse.client.api.data_formats.internal.BinaryStreamReader
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BigIntegerreadBigIntegerLE(InputStream input, int len, boolean unsigned) static ZonedDateTimereadDate(InputStream input, TimeZone tz) static ZonedDateTimereadDate32(InputStream input, TimeZone tz) static ZonedDateTimereadDateTime32(InputStream input, TimeZone tz) static ZonedDateTimereadDateTime64(InputStream input, int scale, TimeZone tz) static BigDecimalreadDecimal(InputStream input, int precision, int scale) static BigDecimalreadDecimal128(InputStream input, int scale) static BigDecimalreadDecimal256(InputStream input, int scale) static BigDecimalreadDecimal32(InputStream input, int scale) static BigDecimalreadDecimal64(InputStream input, int scale) static doublereadDoubleLE(InputStream input) static floatreadFloatLE(InputStream input) static double[]readGeoPoint(InputStream input) double[][][]readGeoPolygon(InputStream input) static double[][]readGeoRing(InputStream input) static BigIntegerreadInt128LE(InputStream input) static BigIntegerreadInt256LE(InputStream input) static intreadIntLE(InputStream input) static longreadLongLE(InputStream input) static byte[]readNBytes(InputStream inputStream, int len) static shortreadShortLE(InputStream input) static StringreadString(InputStream input) static shortreadUnsignedByte(InputStream input) static BigIntegerreadUnsignedInt128LE(InputStream input) static BigIntegerreadUnsignedInt256LE(InputStream input) static BigIntegerreadUnsignedInt64LE(InputStream input) static longreadUnsignedIntLE(InputStream input) static intreadUnsignedShortLE(InputStream input) <T> TreadValue(com.clickhouse.data.ClickHouseColumn column) static intreadVarInt(InputStream input) Reads a varint from input stream.
-
Method Details
-
readValue
- Throws:
IOException
-
readShortLE
- Throws:
IOException
-
readIntLE
- Throws:
IOException
-
readLongLE
- Throws:
IOException
-
readBigIntegerLE
public static BigInteger readBigIntegerLE(InputStream input, int len, boolean unsigned) throws IOException - Throws:
IOException
-
readInt128LE
- Throws:
IOException
-
readInt256LE
- Throws:
IOException
-
readFloatLE
- Throws:
IOException
-
readDoubleLE
- Throws:
IOException
-
readDecimal
public static BigDecimal readDecimal(InputStream input, int precision, int scale) throws IOException - Throws:
IOException
-
readDecimal32
- Throws:
IOException
-
readDecimal64
- Throws:
IOException
-
readDecimal128
- Throws:
IOException
-
readDecimal256
- Throws:
IOException
-
readNBytes
- Throws:
IOException
-
readGeoPoint
- Throws:
IOException
-
readGeoRing
- Throws:
IOException
-
readGeoPolygon
- Throws:
IOException
-
readVarInt
Reads a varint from input stream.- Returns:
- varint
- Throws:
IOException- when failed to read value from input stream or reached end of the stream
-
readUnsignedByte
- Throws:
IOException
-
readUnsignedShortLE
- Throws:
IOException
-
readUnsignedIntLE
- Throws:
IOException
-
readUnsignedInt64LE
- Throws:
IOException
-
readUnsignedInt128LE
- Throws:
IOException
-
readUnsignedInt256LE
- Throws:
IOException
-
readDate
- Throws:
IOException
-
readDate32
- Throws:
IOException
-
readDateTime32
- Throws:
IOException
-
readDateTime64
public static ZonedDateTime readDateTime64(InputStream input, int scale, TimeZone tz) throws IOException - Throws:
IOException
-
readString
- Throws:
IOException
-