Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
11e40e80
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
11e40e80
编写于
5月 26, 2020
作者:
H
Heikki Linnakangas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove tuplestorenew.c
It is no longer used.
上级
20c3b54a
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
1436 deletion
+1
-1436
src/backend/utils/sort/Makefile
src/backend/utils/sort/Makefile
+1
-1
src/backend/utils/sort/tuplestorenew.c
src/backend/utils/sort/tuplestorenew.c
+0
-1366
src/include/utils/tuplestorenew.h
src/include/utils/tuplestorenew.h
+0
-69
未找到文件。
src/backend/utils/sort/Makefile
浏览文件 @
11e40e80
...
...
@@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
override CPPFLAGS
:
= -I. -I$(srcdir) $(CPPFLAGS)
OBJS
=
logtape.o sortsupport.o tuplesort.o tuplestore.o tuples
torenew.o tuples
ort_mk.o tuplesort_mkheap.o tuplesort_mkqsort.o
OBJS
=
logtape.o sortsupport.o tuplesort.o tuplestore.o tuplesort_mk.o tuplesort_mkheap.o tuplesort_mkqsort.o
tuplesort.o
:
qsort_tuple.c
...
...
src/backend/utils/sort/tuplestorenew.c
已删除
100644 → 0
浏览文件 @
20c3b54a
此差异已折叠。
点击以展开。
src/include/utils/tuplestorenew.h
已删除
100644 → 0
浏览文件 @
20c3b54a
/*
* tuplestorenew.h
* A better tuple store
*/
#ifndef TUPSTORE_NEW_H
#define TUPSTORE_NEW_H
#include "executor/tuptable.h"
#include "utils/workfile_mgr.h"
typedef
struct
NTupleStorePos
{
long
blockn
;
int
slotn
;
}
NTupleStorePos
;
/* Opaque data types */
typedef
struct
NTupleStoreAccessor
NTupleStoreAccessor
;
typedef
struct
NTupleStore
NTupleStore
;
/* Instrument tuple store
* Caller must ensure ins ptr remain valid during the lifetype of the tuple store
*/
void
ntuplestore_setinstrument
(
NTupleStore
*
ts
,
struct
Instrumentation
*
ins
);
/* Tuple store method */
extern
NTupleStore
*
ntuplestore_create
(
int64
maxBytes
,
char
*
operation_name
);
extern
NTupleStore
*
ntuplestore_create_readerwriter
(
const
char
*
filename
,
int64
maxBytes
,
bool
isWriter
);
extern
bool
ntuplestore_is_readerwriter_reader
(
NTupleStore
*
nts
);
extern
void
ntuplestore_flush
(
NTupleStore
*
ts
);
extern
void
ntuplestore_destroy
(
NTupleStore
*
ts
);
/* Tuple store accessor method
* Create Accessor: current we support 1 writer, many reader per store. After created, the accessor
* is positioned at the first tuple or eof (if there is no tuple).
*/
extern
NTupleStoreAccessor
*
ntuplestore_create_accessor
(
NTupleStore
*
ts
,
bool
isWriter
);
extern
void
ntuplestore_destroy_accessor
(
NTupleStoreAccessor
*
acc
);
/* Put slot/data and automatically position the accessor to the last entry */
extern
void
ntuplestore_acc_put_tupleslot
(
NTupleStoreAccessor
*
tsa
,
TupleTableSlot
*
slot
);
extern
void
ntuplestore_acc_put_data
(
NTupleStoreAccessor
*
tsa
,
void
*
data
,
int
len
);
/* return true if success, false if beyond last (first) valid position */
extern
bool
ntuplestore_acc_advance
(
NTupleStoreAccessor
*
tsa
,
int
n
);
/* Get data. The slot/pointer returned is guaranteed to be valid till the accessor
* call advance.
* NOTE: trim may make current position of an accessor invalid. It is caller's reponsibilty
* to make sure trim does not trim too far ahead
*/
extern
bool
ntuplestore_acc_current_tupleslot
(
NTupleStoreAccessor
*
tsa
,
TupleTableSlot
*
slot
);
/* Tell/seek position of accessor. */
/* Tell fill in the pos, return false if accessor points to an invalid position.
* Caller can pass in pos = NULL to simply tell if the accessor is at a valid position.
*/
extern
bool
ntuplestore_acc_tell
(
NTupleStoreAccessor
*
tsa
,
NTupleStorePos
*
pos
);
/* put the current row at a certain pos (or first/last). Return false pos is invalid */
extern
bool
ntuplestore_acc_seek
(
NTupleStoreAccessor
*
tsa
,
NTupleStorePos
*
pos
);
extern
bool
ntuplestore_acc_seek_first
(
NTupleStoreAccessor
*
tsa
);
extern
bool
ntuplestore_acc_seek_last
(
NTupleStoreAccessor
*
tsa
);
extern
void
ntuplestore_acc_seek_bof
(
NTupleStoreAccessor
*
tsa
);
extern
void
ntuplestore_acc_seek_eof
(
NTupleStoreAccessor
*
tsa
);
#endif
/* TUPSTORE_NEW_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录