|
|
bool | quoted = false |
| | Variable to keep information regarding quoted and escaped values.
|
|
bool | unquoted = false |
| | If the current quoted value is unquoted.
|
|
bool | escaped = false |
| | If the current value has been escaped.
|
|
bool | comment = false |
| | Variable to keep track if we are in a comment row. Hence, won't add it.
|
|
idx_t | quoted_position = 0 |
|
LinePosition | last_position |
|
const idx_t | result_size |
| | Size of the result.
|
|
CSVStateMachine & | state_machine |
|
bool | cur_line_starts_as_comment = false |
◆ ScannerResult()
168345 :
result_size(result_size_p), state_machine(state_machine_p), states(states_p) {
168346}
const idx_t result_size
Size of the result.
Definition duckdb.cpp:167232
◆ SetQuoted()
| void duckdb::ScannerResult::SetQuoted |
( |
ScannerResult & | result, |
|
|
idx_t | quoted_position ) |
|
inlinestatic |
167184 {
167185 if (!result.quoted) {
167186 result.quoted_position = quoted_position;
167187 }
167188 result.quoted = true;
167189 result.unquoted = true;
167190 }
◆ SetUnquoted()
| void duckdb::ScannerResult::SetUnquoted |
( |
ScannerResult & | result | ) |
|
|
inlinestatic |
167192 {
167194 result.state_machine.dialect_options.state_machine_options.escape != '\0') {
167195
167196 result.escaped = true;
167197 }
167198 result.quoted = true;
167199 }
@ UNQUOTED
State when inside a quoted field.
Definition duckdb.cpp:59184
◆ SetEscaped()
| void duckdb::ScannerResult::SetEscaped |
( |
ScannerResult & | result | ) |
|
|
inlinestatic |
167201 {
167202 result.escaped = true;
167203 }
◆ SetComment()
| void duckdb::ScannerResult::SetComment |
( |
ScannerResult & | result, |
|
|
idx_t | buffer_pos ) |
|
inlinestatic |
167204 {
167205 result.comment = true;
167206 }
◆ UnsetComment()
| bool duckdb::ScannerResult::UnsetComment |
( |
ScannerResult & | result, |
|
|
idx_t | buffer_pos ) |
|
inlinestatic |
167207 {
167208 result.comment = false;
167209 return false;
167210 }
◆ IsCommentSet()
| bool duckdb::ScannerResult::IsCommentSet |
( |
const ScannerResult & | result | ) |
|
|
inlinestatic |
167211 {
167212 return result.comment == true;
167213 }
◆ IsStateCurrent()
| bool duckdb::ScannerResult::IsStateCurrent |
( |
CSVState | state | ) |
const |
|
inline |
167215 {
167216 return states.states[1] == state;
167217 }
◆ Print()
| void duckdb::ScannerResult::Print |
( |
| ) |
const |
|
inline |
167237 {
167238 state_machine.Print();
167239 }
The documentation for this class was generated from the following file: