hashstrat.c

来自「关系型数据库 Postgresql 6.5.2」· C语言 代码 · 共 82 行

C
82
字号
/*------------------------------------------------------------------------- * * btstrat.c *	  Srategy map entries for the btree indexed access method * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION *	  $Header: /usr/local/cvsroot/pgsql/src/backend/access/hash/hashstrat.c,v 1.13.2.1 1999/08/02 05:24:36 scrappy Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"/* *	only one valid strategy for hash tables: equality. */#ifdef NOT_USEDstatic StrategyNumber HTNegate[1] = {	InvalidStrategy};static StrategyNumber HTCommute[1] = {	HTEqualStrategyNumber};static StrategyNumber HTNegateCommute[1] = {	InvalidStrategy};static StrategyEvaluationData HTEvaluationData = {	/* XXX static for simplicity */	HTMaxStrategyNumber,	(StrategyTransformMap) HTNegate,	(StrategyTransformMap) HTCommute,	(StrategyTransformMap) HTNegateCommute,	{NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}};#endif/* ---------------------------------------------------------------- *		RelationGetHashStrategy * ---------------------------------------------------------------- */#ifdef NOT_USEDstatic StrategyNumber_hash_getstrat(Relation rel,			   AttrNumber attno,			   RegProcedure proc){	StrategyNumber strat;	strat = RelationGetStrategy(rel, attno, &HTEvaluationData, proc);	Assert(StrategyNumberIsValid(strat));	return strat;}#endif#ifdef NOT_USEDstatic bool_hash_invokestrat(Relation rel,				  AttrNumber attno,				  StrategyNumber strat,				  Datum left,				  Datum right){	return (RelationInvokeStrategy(rel, &HTEvaluationData, attno, strat,								   left, right));}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?