This represents the data related to columns that have been set by the user e.g., from a copy command.
More...
#include <duckdb.hpp>
|
|
const vector< LogicalType > * | types = nullptr |
| | Return Types that were detected.
|
|
const vector< string > * | names = nullptr |
| | Column Names that were detected.
|
This represents the data related to columns that have been set by the user e.g., from a copy command.
◆ SetColumns() [1/2]
173296 } else {
173298 }
173299}
const vector< LogicalType > * types
Return Types that were detected.
Definition duckdb.hpp:51685
const vector< string > * names
Column Names that were detected.
Definition duckdb.hpp:51687
◆ SetColumns() [2/2]
| duckdb::SetColumns::SetColumns |
( |
| ) |
|
◆ IsSet()
| bool duckdb::SetColumns::IsSet |
( |
| ) |
const |
If columns are set.
173304 {
173306 return false;
173307 }
173308 return !
types->empty();
173309}
◆ Size()
| idx_t duckdb::SetColumns::Size |
( |
| ) |
const |
How many columns.
173311 {
173313 return 0;
173314 }
173315 return types->size();
173316}
◆ IsCandidateUnacceptable()
| bool duckdb::SetColumns::IsCandidateUnacceptable |
( |
const idx_t | num_cols, |
|
|
bool | null_padding, |
|
|
bool | ignore_errors, |
|
|
bool | last_value_always_empty ) const |
Helper function that checks if candidate is acceptable based on the number of columns it produces.
173319 {
173320 if (!
IsSet() || ignore_errors) {
173321
173322 return false;
173323 }
173325
173326
173327
173328
173329 if (num_cols == size || num_cols == size + last_value_always_empty) {
173330
173331 return false;
173332 }
173333
173334 if (null_padding && num_cols > size) {
173335 return false;
173336 }
173337
173338 return true;
173339}
GOpaque< Size > size(const GMat &src)
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
idx_t Size() const
How many columns.
Definition duckdb.cpp:173311
bool IsSet() const
If columns are set.
Definition duckdb.cpp:173304
◆ ToString()
| string duckdb::SetColumns::ToString |
( |
| ) |
const |
173341 {
173342 stringstream ss;
173343 ss << "columns = { ";
173345 ss <<
"'" <<
names->at(i) <<
"'"
173346 << " : ";
173347 ss <<
"'" <<
types->at(i).ToString() <<
"'";
173348 if (i !=
Size() - 1) {
173349 ss << ", ";
173350 }
173351 }
173352 ss << "}";
173353 return ss.str();
173354}
The documentation for this struct was generated from the following files: