OmniSciDB  a5dc49c757
 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 1100 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 545 of file ResultSet.cpp.

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

545  {
546  if (total_row_count < offset) {
547  return 0;
548  }
549 
550  size_t total_truncated_row_count = total_row_count - offset;
551 
552  if (limit) {
553  return std::min(total_truncated_row_count, limit);
554  }
555 
556  return total_truncated_row_count;
557 }

+ Here is the caller graph for this function:

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

Definition at line 1091 of file ResultSet.cpp.

References NULL_BIGINT.

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

1091  {
1092  if (auto const* const agg_mode = reinterpret_cast<AggMode const*>(i1)) {
1093  if (std::optional<int64_t> const mode = agg_mode->mode()) {
1094  return *mode;
1095  }
1096  }
1097  return NULL_BIGINT;
1098 }
#define NULL_BIGINT

+ Here is the caller graph for this function: