greenplumn writer 源码
greenplumn writer 代码
文件路径:/gpcontrib/gpcloud/include/writer.h
#ifndef __S3_WRITER_H__
#define __S3_WRITER_H__
#include "s3common_headers.h"
#include "s3params.h"
class Writer {
public:
virtual ~Writer() {
}
virtual void open(const S3Params ¶ms) = 0;
// write() attempts to write up to count bytes from the buffer.
// Always return 0 if EOF, no matter how many times it's invoked. Throw exception if encounters
// errors.
virtual uint64_t write(const char *buf, uint64_t count) = 0;
// This should be reentrant, has no side effects when called multiple times.
virtual void close() = 0;
};
#endif
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦