greenplumn CDistributionSpecStrictRandom 源码
greenplumn CDistributionSpecStrictRandom 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/base/CDistributionSpecStrictRandom.h
// Greenplum Database
// Copyright (C) 2016 VMware, Inc. or its affiliates.
#ifndef GPOPT_CDistributionSpecStrictRandom_H
#define GPOPT_CDistributionSpecStrictRandom_H
#include "gpos/base.h"
#include "gpopt/base/CDistributionSpecRandom.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CDistributionSpecStrictRandom
//
// @doc:
// Class for representing forced random distribution.
//
//---------------------------------------------------------------------------
class CDistributionSpecStrictRandom : public CDistributionSpecRandom
{
public:
//ctor
CDistributionSpecStrictRandom();
// accessor
EDistributionType
Edt() const override
{
return CDistributionSpec::EdtStrictRandom;
}
const CHAR *
SzId() const override
{
return "STRICT RANDOM";
}
// does this distribution match the given one
BOOL Matches(const CDistributionSpec *pds) const override;
// does this distribution satisfy the given one
BOOL FSatisfies(const CDistributionSpec *pds) const override;
}; // class CDistributionSpecStrictRandom
} // namespace gpopt
#endif // !GPOPT_CDistributionSpecStrictRandom_H
// EOF
相关信息
相关文章
greenplumn CColConstraintsArrayMapper 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦