33 result->
length =
sizeof(int16_t);
38 datum->
smallintval = (int16_t) * (int8_t*)compressed;
50 result->
length =
sizeof(int32_t);
56 datum->
intval = (int32_t) * (int8_t*)compressed;
59 datum->
intval = (int32_t) * (int16_t*)compressed;
77 result->
length =
sizeof(int64_t);
83 datum->
bigintval = (int64_t) * (int8_t*)compressed;
86 datum->
bigintval = (int64_t) * (int16_t*)compressed;
89 datum->
bigintval = (int64_t) * (int32_t*)compressed;
109 datum->
bigintval = (int64_t) * (int32_t*)compressed;
115 datum->
bigintval = (int64_t) * (int32_t*)compressed;
118 datum->
bigintval = (int64_t) * (int16_t*)compressed;
135 result->
length =
sizeof(int64_t);
191 if (!it || static_cast<size_t>(n) >= it->
num_elems || n < 0) {
226 if (!it || static_cast<size_t>(n) >= it->
num_elems || n < 0) {
229 result->pointer = NULL;
230 result->is_null =
true;
238 result->length =
static_cast<size_t>(it->
skip_size);
239 result->pointer = current_pos;
251 if (next_offset < 0) {
253 result->pointer = NULL;
254 result->is_null =
true;
259 result->length =
static_cast<size_t>(next_offset - offset);
261 result->is_null =
false;
275 *is_end = (!it ||
static_cast<size_t>(
n) >= it->
num_elems || n < 0);
283 if (next_offset >= 0) {
288 result->length =
static_cast<size_t>(next_offset - offset);
290 result->is_null =
false;
296 result->pointer = NULL;
297 result->is_null =
true;
305 *is_end = (
static_cast<size_t>(
n) >= it->
num_elems || n < 0);
312 result->length =
static_cast<size_t>(next_offset - offset);
314 result->is_null =
false;
325 if (!it || static_cast<size_t>(n) >= it->
num_elems || n < 0) {
328 result->pointer = NULL;
329 result->is_null =
true;
336 result->length =
static_cast<size_t>(it->
skip_size);
337 result->pointer = current_pos;
static DEVICE void decompress(const SQLTypeInfo &ti, int8_t *compressed, VarlenDatum *result, Datum *datum)
DEVICE void ChunkIter_get_nth_point_coords(ChunkIter *it, int n, ArrayDatum *result, bool *is_end)
HOST DEVICE bool is_null_fixlen_array(const int8_t *val, int array_size) const
HOST DEVICE SQLTypes get_type() const
DEVICE void ChunkIter_get_nth(ChunkIter *it, int n, bool uncompress, VarlenDatum *result, bool *is_end)
std::conditional_t< is_cuda_compiler(), DeviceArrayDatum, HostArrayDatum > ArrayDatum
CONSTEXPR DEVICE bool is_null(const T &value)
DEVICE void ChunkIter_get_nth_varlen(ChunkIter *it, int n, ArrayDatum *result, bool *is_end)
HOST DEVICE bool is_null(const Datum &d) const
HOST DEVICE EncodingType get_compression() const
void ChunkIter_reset(ChunkIter *it)
HOST DEVICE int get_comp_param() const
DEVICE void ChunkIter_get_next(ChunkIter *it, bool uncompress, VarlenDatum *result, bool *is_end)
HOST DEVICE bool get_notnull() const
HOST static DEVICE bool isFlatBuffer(const void *buffer)
DEVICE void ChunkIter_get_nth_varlen_notnull(ChunkIter *it, int n, ArrayDatum *result, bool *is_end)
HOST DEVICE bool is_null_point_coord_array(const int8_t *val, int array_size) const
DEVICE void VarlenArray_get_nth(int8_t *buf, int n, ArrayDatum *result, bool *is_end)