greenplumn CIdGenerator 源码
greenplumn CIdGenerator 代码
文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/CIdGenerator.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 Greenplum, Inc.
//
// @filename:
// CIdGenerator.h
//
// @doc:
// Class providing methods for a ULONG counter
//
// @owner:
//
//
// @test:
//
//---------------------------------------------------------------------------
#ifndef GPDXL_CIdGenerator_H
#define GPDXL_CIdGenerator_H
#define GPDXL_INVALID_ID gpos::ulong_max
#include "gpos/base.h"
namespace gpdxl
{
using namespace gpos;
class CIdGenerator
{
private:
ULONG id;
public:
explicit CIdGenerator(ULONG);
ULONG next_id();
ULONG current_id() const;
};
} // namespace gpdxl
#endif // GPDXL_CIdGenerator_H
// EOF
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦