MCPcopy Create free account
hub / github.com/apache/arrow / Equals

Method Equals

cpp/src/arrow/dataset/file_csv.cc:357–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355CsvFileFormat::CsvFileFormat() : FileFormat(std::make_shared<CsvFragmentScanOptions>()) {}
356
357bool CsvFileFormat::Equals(const FileFormat& format) const {
358 if (type_name() != format.type_name()) return false;
359
360 const auto& other_parse_options =
361 checked_cast<const CsvFileFormat&>(format).parse_options;
362
363 return parse_options.delimiter == other_parse_options.delimiter &&
364 parse_options.quoting == other_parse_options.quoting &&
365 parse_options.quote_char == other_parse_options.quote_char &&
366 parse_options.double_quote == other_parse_options.double_quote &&
367 parse_options.escaping == other_parse_options.escaping &&
368 parse_options.escape_char == other_parse_options.escape_char &&
369 parse_options.newlines_in_values == other_parse_options.newlines_in_values &&
370 parse_options.ignore_empty_lines == other_parse_options.ignore_empty_lines;
371}
372
373Result<bool> CsvFileFormat::IsSupported(const FileSource& source) const {
374 RETURN_NOT_OK(source.Open().status());

Callers 8

CheckProjectableFunction · 0.45
EqualsFunction · 0.45
WriteRecordBatchMethod · 0.45
MakeMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

type_nameFunction · 0.70
type_nameMethod · 0.45

Tested by 5

WriteRecordBatchMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36