OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ResultSet.cpp} Namespace Reference

Classes

struct  IsAggKind
 
struct  IsDictEncodedStr
 

Typedefs

using ModeBlockedRange = tbb::blocked_range< size_t >
 

Functions

size_t get_truncated_row_count (size_t total_row_count, size_t limit, size_t offset)
 
int64_t materializeMode (int64_t const i1)
 

Typedef Documentation

using anonymous_namespace{ResultSet.cpp}::ModeBlockedRange = typedef tbb::blocked_range<size_t>

Definition at line 1090 of file ResultSet.cpp.

Function Documentation

size_t anonymous_namespace{ResultSet.cpp}::get_truncated_row_count ( size_t  total_row_count,
size_t  limit,
size_t  offset 
)

Definition at line 541 of file ResultSet.cpp.

Referenced by ResultSet::binSearchRowCount(), ResultSet::parallelRowCount(), and ResultSet::rowCountImpl().

541  {
542  if (total_row_count < offset) {
543  return 0;
544  }
545 
546  size_t total_truncated_row_count = total_row_count - offset;
547 
548  if (limit) {
549  return std::min(total_truncated_row_count, limit);
550  }
551 
552  return total_truncated_row_count;
553 }

+ Here is the caller graph for this function:

int64_t anonymous_namespace{ResultSet.cpp}::materializeMode ( int64_t const  i1)

Definition at line 1081 of file ResultSet.cpp.

References NULL_BIGINT.

Referenced by java::sql::ResultSet::ResultSetComparator::ModeScatter< BUFFER_ITERATOR_TYPE >::operator()().

1081  {
1082  if (auto const* const agg_mode = reinterpret_cast<AggMode const*>(i1)) {
1083  if (std::optional<int64_t> const mode = agg_mode->mode()) {
1084  return *mode;
1085  }
1086  }
1087  return NULL_BIGINT;
1088 }
#define NULL_BIGINT

+ Here is the caller graph for this function: