예제 #1
0
::testing::AssertionResult AssertTableContentEquals(const char *left_exp,
                                                    const char *right_exp,
                                                    const hyrise::storage::c_atable_ptr_t left,
                                                    const hyrise::storage::c_atable_ptr_t right) {
  if (left->contentEquals(right)) {
    return ::testing::AssertionSuccess();
  }

  std::stringstream buf;

  PrettyPrinter::print(left.get(), buf, left_exp);
  PrettyPrinter::print(right.get(), buf, right_exp);
  return ::testing::AssertionFailure() << buf.str()
                                       << "The content of " << left_exp << " does not equal the content of " << right_exp;
}
예제 #2
0
파일: HashTable.cpp 프로젝트: came/hyrise
size_t hash_value(const hyrise::storage::c_atable_ptr_t &source, const size_t &f, const ValueId &vid) {
  hyrise::storage::hash_functor<size_t> fun(source.get(), f, vid);
  hyrise::storage::type_switch<hyrise_basic_types> ts;
  return ts(source->typeOfColumn(f), fun);
}