OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::vector< FragmentInfofragments
 

Private Attributes

size_t numTuples
 

Detailed Description

Definition at line 147 of file Fragmenter.h.

Constructor & Destructor Documentation

Fragmenter_Namespace::TableInfo::TableInfo ( )
inline

Definition at line 149 of file Fragmenter.h.

Member Function Documentation

size_t Fragmenter_Namespace::TableInfo::getFragmentNumTuplesUpperBound ( ) const

Definition at line 314 of file InputMetadata.cpp.

314  {
315  if (!fragments.empty() && fragments.front().resultSet) {
316  return fragments.front().resultSet->entryCount();
317  }
318  size_t fragment_num_tupples_upper_bound = 0;
319  for (const auto& fragment : fragments) {
320  fragment_num_tupples_upper_bound =
321  std::max(fragment.getNumTuples(), fragment_num_tupples_upper_bound);
322  }
323  return fragment_num_tupples_upper_bound;
324 }
std::vector< FragmentInfo > fragments
Definition: Fragmenter.h:162
size_t Fragmenter_Namespace::TableInfo::getNumTuples ( ) const

Definition at line 300 of file InputMetadata.cpp.

Referenced by PerfectJoinHashTable::genChunkKey().

300  {
301  if (!fragments.empty() && fragments.front().resultSet) {
302  return fragments.front().getNumTuples();
303  }
304  return numTuples;
305 }
std::vector< FragmentInfo > fragments
Definition: Fragmenter.h:162

+ Here is the caller graph for this function:

size_t Fragmenter_Namespace::TableInfo::getNumTuplesUpperBound ( ) const

Definition at line 307 of file InputMetadata.cpp.

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

307  {
308  if (!fragments.empty() && fragments.front().resultSet) {
309  return fragments.front().resultSet->entryCount();
310  }
311  return numTuples;
312 }
std::vector< FragmentInfo > fragments
Definition: Fragmenter.h:162

+ Here is the caller graph for this function:

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

Definition at line 155 of file Fragmenter.h.

References numTuples.

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

155 { return numTuples; }

+ Here is the caller graph for this function:

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

Definition at line 157 of file Fragmenter.h.

References numTuples.

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

157 { numTuples = physNumTuples; }

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<int> Fragmenter_Namespace::TableInfo::chunkKeyPrefix
size_t Fragmenter_Namespace::TableInfo::numTuples
mutableprivate

Definition at line 165 of file Fragmenter.h.

Referenced by getPhysicalNumTuples(), and setPhysicalNumTuples().


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