MCPcopy Create free account
hub / github.com/apache/cloudberry / open

Method open

gpcontrib/gpcloud/src/s3common_writer.cpp:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "s3common_writer.h"
2
3void S3CommonWriter::open(const S3Params& params) {
4 this->keyWriter.setS3InterfaceService(this->s3InterfaceService);
5
6 if (params.isAutoCompress()) {
7 this->upstreamWriter = &this->compressWriter;
8 this->compressWriter.setWriter(&this->keyWriter);
9 } else {
10 this->upstreamWriter = &this->keyWriter;
11 }
12
13 this->upstreamWriter->open(params);
14}
15
16uint64_t S3CommonWriter::write(const char* buf, uint64_t count) {
17 return this->upstreamWriter->write(buf, count);

Callers

nothing calls this directly

Calls 3

isAutoCompressMethod · 0.80
setWriterMethod · 0.80
setS3InterfaceServiceMethod · 0.45

Tested by

no test coverage detected