greenplumn CIdGenerator 源码

2022-08-18 浏览 (387)

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

相关信息

greenplumn 源码目录

相关文章

greenplumn CCostModelConfigSerializer 源码

greenplumn CDXLUtils 源码

greenplumn errorcodes 源码

greenplumn gpdb_types 源码

^