OmniSciDB  c07336695a
Fragmenter_Namespace::TableInfo Class Reference

#include <Fragmenter.h>

Public Member Functions

 TableInfo ()
 
size_t getNumTuples () const
 
size_t getNumTuplesUpperBound () const
 
size_t getPhysicalNumTuples () const
 
void setPhysicalNumTuples (const size_t physNumTuples)
 
size_t getFragmentNumTuplesUpperBound () const
 

Public Attributes

std::vector< int > chunkKeyPrefix
 
std::deque< FragmentInfofragments
 

Private Attributes

size_t numTuples
 

Detailed Description

Definition at line 152 of file Fragmenter.h.

Constructor & Destructor Documentation

◆ TableInfo()

Fragmenter_Namespace::TableInfo::TableInfo ( )
inline

Definition at line 154 of file Fragmenter.h.

Member Function Documentation

◆ getFragmentNumTuplesUpperBound()

size_t Fragmenter_Namespace::TableInfo::getFragmentNumTuplesUpperBound ( ) const

Definition at line 301 of file InputMetadata.cpp.

301  {
302  if (!fragments.empty() && fragments.front().resultSet) {
303  return fragments.front().resultSet->entryCount();
304  }
305  size_t fragment_num_tupples_upper_bound = 0;
306  for (const auto& fragment : fragments) {
307  fragment_num_tupples_upper_bound =
308  std::max(fragment.getNumTuples(), fragment_num_tupples_upper_bound);
309  }
310  return fragment_num_tupples_upper_bound;
311 }
std::deque< FragmentInfo > fragments
Definition: Fragmenter.h:167

◆ getNumTuples()

size_t Fragmenter_Namespace::TableInfo::getNumTuples ( ) const

Definition at line 287 of file InputMetadata.cpp.

287  {
288  if (!fragments.empty() && fragments.front().resultSet) {
289  return fragments.front().getNumTuples();
290  }
291  return numTuples;
292 }
std::deque< FragmentInfo > fragments
Definition: Fragmenter.h:167

◆ getNumTuplesUpperBound()

size_t Fragmenter_Namespace::TableInfo::getNumTuplesUpperBound ( ) const

Definition at line 294 of file InputMetadata.cpp.

Referenced by OverlapsJoinHashTable::getInstance(), and BaselineJoinHashTable::getInstance().

294  {
295  if (!fragments.empty() && fragments.front().resultSet) {
296  return fragments.front().resultSet->entryCount();
297  }
298  return numTuples;
299 }
std::deque< FragmentInfo > fragments
Definition: Fragmenter.h:167
+ Here is the caller graph for this function:

◆ getPhysicalNumTuples()

size_t Fragmenter_Namespace::TableInfo::getPhysicalNumTuples ( ) const
inline

Definition at line 160 of file Fragmenter.h.

Referenced by anonymous_namespace{InputMetadata.cpp}::copy_table_info(), Fragmenter_Namespace::InsertOrderFragmenter::getFragmentsForQuery(), and scan_table_return_hash().

160 { return numTuples; }
+ Here is the caller graph for this function:

◆ setPhysicalNumTuples()

void Fragmenter_Namespace::TableInfo::setPhysicalNumTuples ( const size_t  physNumTuples)
inline

Definition at line 162 of file Fragmenter.h.

Referenced by anonymous_namespace{InputMetadata.cpp}::build_table_info(), anonymous_namespace{InputMetadata.cpp}::copy_table_info(), and Fragmenter_Namespace::InsertOrderFragmenter::getFragmentsForQuery().

162 { numTuples = physNumTuples; }
+ Here is the caller graph for this function:

Member Data Documentation

◆ chunkKeyPrefix

std::vector<int> Fragmenter_Namespace::TableInfo::chunkKeyPrefix

◆ fragments

◆ numTuples

size_t Fragmenter_Namespace::TableInfo::numTuples
mutableprivate

Definition at line 170 of file Fragmenter.h.


The documentation for this class was generated from the following files: