greenplumn cdbdef 源码

  • 2022-08-18
  • 浏览 (233)

greenplumn cdbdef 代码

文件路径:/src/include/cdb/cdbdef.h

/*-------------------------------------------------------------------------
 *
 * cdbdef.h
 *	Definitions for use anywhere
 *
 * Portions Copyright (c) 2005-2008, Greenplum inc
 * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
 *
 *
 * IDENTIFICATION
 *	    src/include/cdb/cdbdef.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef CDBDEF_H
#define CDBDEF_H


/*
 * CdbSwap
 *		Exchange the contents of two variables.
 */
#define CdbSwap(_type, _x, _y)	\
	do							\
	{							\
		_type _t = (_x);		\
		_x = (_y);				\
		_y = (_t);				\
	} while (0)


/*
 * CdbVisitOpt
 *      Some tree walkers use these codes to direct the traversal.
 */
typedef enum 
{
    CdbVisit_Walk = 1,          /* proceed in normal sequence */    
    CdbVisit_Skip,              /* no more calls for current node or its kids */
    CdbVisit_Stop,              /* break out of traversal, no more callbacks */
    CdbVisit_Failure,           /* break out of traversal, no more callbacks */
    CdbVisit_Success            /* break out of traversal, no more callbacks */
} CdbVisitOpt;


#endif   /* CDBDEF_H */

相关信息

greenplumn 源码目录

相关文章

greenplumn cdbaocsam 源码

greenplumn cdbappendonlyam 源码

greenplumn cdbappendonlyblockdirectory 源码

greenplumn cdbappendonlystorage 源码

greenplumn cdbappendonlystorage_int 源码

greenplumn cdbappendonlystorageformat 源码

greenplumn cdbappendonlystoragelayer 源码

greenplumn cdbappendonlystorageread 源码

greenplumn cdbappendonlystoragewrite 源码

greenplumn cdbappendonlyxlog 源码

0  赞