greenplumn CHistogramTest 源码
greenplumn CHistogramTest 代码
文件路径:/src/backend/gporca/server/include/unittest/dxl/statistics/CHistogramTest.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2018 VMware, Inc. or its affiliates.
//
// @filename:
// CHistogramTest.h
//
// @doc:
// Testing operations on points used to define histogram buckets
//---------------------------------------------------------------------------
#ifndef GPNAUCRATES_CHistogramTest_H
#define GPNAUCRATES_CHistogramTest_H
#include "gpos/base.h"
#include "naucrates/statistics/CHistogram.h"
namespace gpnaucrates
{
//---------------------------------------------------------------------------
// @class:
// CHistogramTest
//
// @doc:
// Static unit tests for point
//
//---------------------------------------------------------------------------
class CHistogramTest
{
private:
// generate int histogram having tuples not covered by buckets,
// including null fraction and nDistinctRemain
static CHistogram *PhistExampleInt4Remain(CMemoryPool *mp);
public:
// unittests
static GPOS_RESULT EresUnittest();
// histogram basic tests
static GPOS_RESULT EresUnittest_CHistogramValid();
static GPOS_RESULT EresUnittest_CHistogramInt4();
static GPOS_RESULT EresUnittest_CHistogramBool();
// skew basic tests
static GPOS_RESULT EresUnittest_Skew();
// merge basic tests
static GPOS_RESULT EresUnittest_MergeUnion();
// merge union test with double values differing by less than epsilon
static GPOS_RESULT EresUnittest_MergeUnionDoubleLessThanEpsilon();
}; // class CHistogramTest
} // namespace gpnaucrates
#endif // !GPNAUCRATES_CHistogramTest_H
// EOF
相关信息
相关文章
greenplumn CCardinalityTestUtils 源码
greenplumn CFilterCardinalityTest 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦