diff --git a/src/gausskernel/runtime/executor/execTuples.cpp b/src/gausskernel/runtime/executor/execTuples.cpp index d2c0517c7..df45d0c3a 100644 --- a/src/gausskernel/runtime/executor/execTuples.cpp +++ b/src/gausskernel/runtime/executor/execTuples.cpp @@ -1,20 +1,17 @@ /* ------------------------------------------------------------------------- * * execTuples.cpp - * Routines dealing with TupleTableSlots. These are used for resource - * management associated with tuples (eg, releasing buffer pins for - * tuples in disk buffers, or freeing the memory occupied by transient - * tuples). Slots also provide access abstraction that lets us implement - * "virtual" tuples to reduce data-copying overhead. + * 处理TupleTableSlots的例程。这些用于与元组相关的资源管理 + *(例如,释放磁盘缓冲区中元组的缓冲引脚,或释放传输元组占用的内存)。 + * 插槽还提供访问抽象,使我们能够实现“虚拟”元组,以减少数据复制开销。 * - * Routines dealing with the type information for tuples. Currently, - * the type information for a tuple is an array of FormData_pg_attribute. - * This information is needed by routines manipulating tuples - * (getattribute, formtuple, etc.). + * 处理元组的类型信息的例程。 + * 目前,元组的类型信息是FormData_pg_attribute的数组。 + * 处理元组(getattribute、formtuple等)的例程需要这些信息。 * - * Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd. - * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California + * 部分版权所有(c)2020华为技术有限公司有限公司。 + * 部分版权所有(c)1996-2012,PostgreSQL全球发展集团 + * 部分版权所有(c)1994,加州大学董事会 * * * IDENTIFICATION @@ -24,22 +21,22 @@ * INTERFACE ROUTINES * * SLOT CREATION/DESTRUCTION - * MakeTupleTableSlot - create an empty slot - * ExecAllocTableSlot - create a slot within a tuple table - * ExecResetTupleTable - clear and optionally delete a tuple table - * MakeSingleTupleTableSlot - make a standalone slot, set its descriptor - * ExecDropSingleTupleTableSlot - destroy a standalone slot + * MakeTupleTableSlot - 创建一个空插槽 + * ExecAllocTableSlot - 在元组表中创建槽 + * ExecResetTupleTable - 清除并可选择删除元组表 + * MakeSingleTupleTableSlot - 制作一个独立插槽,设置其描述符 + * ExecDropSingleTupleTableSlot - 销毁独立插槽 * * SLOT ACCESSORS - * ExecSetSlotDescriptor - set a slot's tuple descriptor - * ExecStoreTuple - store a physical tuple in the slot - * ExecStoreMinimalTuple - store a minimal physical tuple in the slot - * ExecClearTuple - clear contents of a slot - * ExecStoreVirtualTuple - mark slot as containing a virtual tuple - * ExecCopySlotTuple - build a physical tuple from a slot - * ExecCopySlotMinimalTuple - build a minimal physical tuple from a slot - * ExecMaterializeSlot - convert virtual to physical storage - * ExecCopySlot - copy one slot's contents to another + * ExecSetSlotDescriptor - 设置槽的元组描述符 + * ExecStoreTuple - 在插槽中存储物理元组 + * ExecStoreMinimalTuple - 在插槽中存储最小物理元组 + * ExecClearTuple - 清除槽中的内容 + * ExecStoreVirtualTuple - 将slot标记为包含虚拟元组 + * ExecCopySlotTuple - 从插槽构建物理元组 + * ExecCopySlotMinimalTuple - 从插槽构建最小物理元组 + * ExecMaterializeSlot - 将虚拟存储转换为物理存储 + * ExecCopySlot - 将一个插槽的内容复制到另一个插槽 * * CONVENIENCE INITIALIZATION ROUTINES * ExecInitResultTupleSlot \ convenience routines to initialize