OmniSciDB  c07336695a
anonymous_namespace{UpdelStorageTest.cpp}::RowVacuumTestWithVarlenAndArraysN< N > Class Template Reference
+ Inheritance diagram for anonymous_namespace{UpdelStorageTest.cpp}::RowVacuumTestWithVarlenAndArraysN< N >:
+ Collaboration diagram for anonymous_namespace{UpdelStorageTest.cpp}::RowVacuumTestWithVarlenAndArraysN< N >:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Detailed Description

template<int N = 0>
class anonymous_namespace{UpdelStorageTest.cpp}::RowVacuumTestWithVarlenAndArraysN< N >

Definition at line 615 of file UpdelStorageTest.cpp.

Member Function Documentation

◆ SetUp()

template<int N = 0>
void anonymous_namespace{UpdelStorageTest.cpp}::RowVacuumTestWithVarlenAndArraysN< N >::SetUp ( )
inlineoverrideprotected

Definition at line 617 of file UpdelStorageTest.cpp.

References anonymous_namespace{UpdelStorageTest.cpp}::create_varlen_table2, anonymous_namespace{UpdelStorageTest.cpp}::init_table_data(), Fragmenter_Namespace::FragmentInfo::setUnconditionalVacuum(), and to_string().

617  {
618  auto create_varlen_table =
622  // test >1 fragments?
623  create_varlen_table +=
624  "WITH (FRAGMENT_SIZE = " + std::to_string(N ? N : 32'000'000) + ")";
625  ASSERT_NO_THROW(
626  init_table_data("varlen", create_varlen_table, UpdelTestConfig::varFile););
627  // immediate vacuum?
629  }
static void setUnconditionalVacuum(const double unconditionalVacuum)
Definition: Fragmenter.h:118
std::string to_string(char const *&&v)
void init_table_data(const std::string &table="trips", const std::string &create_table_cmd=create_table_trips, const std::string &file=UpdelTestConfig::fixFile)
+ Here is the call graph for this function:

◆ TearDown()

template<int N = 0>
void anonymous_namespace{UpdelStorageTest.cpp}::RowVacuumTestWithVarlenAndArraysN< N >::TearDown ( )
inlineoverrideprotected

Definition at line 631 of file UpdelStorageTest.cpp.

References run_ddl_statement(), and Fragmenter_Namespace::FragmentInfo::setUnconditionalVacuum().

631  {
633  ASSERT_NO_THROW(run_ddl_statement("drop table varlen;"););
634  }
static void setUnconditionalVacuum(const double unconditionalVacuum)
Definition: Fragmenter.h:118
void run_ddl_statement(const std::string &input_str)
+ Here is the call graph for this function:

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