|
| static void | AddValue (SkipResult &result, const idx_t buffer_pos) |
| | Adds a Value to the result.
|
| static bool | AddRow (SkipResult &result, const idx_t buffer_pos) |
| | Adds a Row to the result.
|
| static void | InvalidState (SkipResult &result) |
| | Behavior when hitting an invalid state.
|
| static bool | EmptyLine (SkipResult &result, const idx_t buffer_pos) |
| | Handles EmptyLine states.
|
| static void | QuotedNewLine (SkipResult &result) |
| | Handles QuotedNewline State.
|
| static void | SetComment (SkipResult &result, idx_t buffer_pos) |
| | Code to set comment.
|
| static bool | UnsetComment (SkipResult &result, idx_t buffer_pos) |
| | Code to unset comment.
|
| static void | SetQuoted (ScannerResult &result, idx_t quoted_position) |
| static void | SetUnquoted (ScannerResult &result) |
| static void | SetEscaped (ScannerResult &result) |
| static void | SetComment (ScannerResult &result, idx_t buffer_pos) |
| static bool | UnsetComment (ScannerResult &result, idx_t buffer_pos) |
| static bool | IsCommentSet (const ScannerResult &result) |
|
|
idx_t | row_count = 0 |
|
idx_t | rows_to_skip |
|
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 |
◆ SkipResult()
169038 : ScannerResult(states, state_machine, STANDARD_VECTOR_SIZE), rows_to_skip(rows_to_skip_p) {
169039}
◆ AddValue()
| void duckdb::SkipResult::AddValue |
( |
SkipResult & | result, |
|
|
const idx_t | buffer_pos ) |
|
inlinestatic |
Adds a Value to the result.
◆ AddRow()
| bool duckdb::SkipResult::AddRow |
( |
SkipResult & | result, |
|
|
const idx_t | buffer_pos ) |
|
inlinestatic |
Adds a Row to the result.
169071 {
169072 result.InternalAddRow();
169073 if (result.row_count >= result.rows_to_skip) {
169074
169075 return true;
169076 }
169077 return false;
169078}
◆ InvalidState()
| void duckdb::SkipResult::InvalidState |
( |
SkipResult & | result | ) |
|
|
inlinestatic |
Behavior when hitting an invalid state.
◆ EmptyLine()
| bool duckdb::SkipResult::EmptyLine |
( |
SkipResult & | result, |
|
|
const idx_t | buffer_pos ) |
|
inlinestatic |
Handles EmptyLine states.
169084 {
169085 return AddRow(result, buffer_pos);
169086}
static bool AddRow(SkipResult &result, const idx_t buffer_pos)
Adds a Row to the result.
Definition duckdb.cpp:169071
◆ QuotedNewLine()
| void duckdb::SkipResult::QuotedNewLine |
( |
SkipResult & | result | ) |
|
|
inlinestatic |
Handles QuotedNewline State.
◆ SetComment()
| void duckdb::SkipResult::SetComment |
( |
SkipResult & | result, |
|
|
idx_t | buffer_pos ) |
|
inlinestatic |
Code to set comment.
169053 {
169054 if (!result.states.WasStandard()) {
169055 result.cur_line_starts_as_comment = true;
169056 }
169057 result.comment = true;
169058}
◆ UnsetComment()
| bool duckdb::SkipResult::UnsetComment |
( |
SkipResult & | result, |
|
|
idx_t | buffer_pos ) |
|
inlinestatic |
Code to unset comment.
169060 {
169061
169062 bool done = false;
169063 if (!result.cur_line_starts_as_comment) {
169064 done = result.AddRow(result, buffer_pos);
169065 }
169066 result.comment = false;
169067 result.cur_line_starts_as_comment = false;
169068 return done;
169069}
◆ InternalAddRow()
| void duckdb::SkipResult::InternalAddRow |
( |
| ) |
|
|
inline |
Internal code to add a row.
169045 {
169046 row_count++;
169047}
The documentation for this class was generated from the following file: