public static long readInt64(ClickHouseInputStream input) throws IOException {
        return input.readBuffer(8).asLong();
    }
Read a long value from given input stream.

@param input non-null input stream
@return long value
@throws IOException when failed to read value from input stream or reached
                    end of the stream
clickhouse-data/src/main/java/com/clickhouse/data/format/BinaryStreamUtils.java