◆ GlobalWriteCSVData()
| duckdb::GlobalWriteCSVData::GlobalWriteCSVData |
( |
CSVReaderOptions & | options, |
|
|
FileSystem & | fs, |
|
|
const string & | file_path, |
|
|
FileCompressionType | compression ) |
|
inline |
241925 : writer(options, fs, file_path, compression) {
241926 }
◆ FileSize()
| idx_t duckdb::GlobalWriteCSVData::FileSize |
( |
| ) |
|
|
inline |
241928 {
241929 return writer.FileSize();
241930 }
◆ GetLocalState()
241932 {
241933 {
241934 lock_guard<mutex> guard(local_state_lock);
241935 if (!local_states.empty()) {
241936 auto result = std::move(local_states.back());
241937 local_states.pop_back();
241938 return result;
241939 }
241940 }
241941 auto result = make_uniq<CSVWriterState>(context, flush_size);
241942 result->require_manual_flush = true;
241943 return result;
241944 }
◆ StoreLocalState()
241946 {
241947 lock_guard<mutex> guard(local_state_lock);
241948 lstate->Reset();
241949 local_states.push_back(std::move(lstate));
241950 }
The documentation for this struct was generated from the following file: