OmniSciDB  c1a53651b2
 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 1088 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 539 of file ResultSet.cpp.

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

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

+ Here is the caller graph for this function:

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

Definition at line 1079 of file ResultSet.cpp.

References NULL_BIGINT.

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

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

+ Here is the caller graph for this function: