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

Method ToString

cpp/src/arrow/dataset/file_base.cc:267–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267std::string FileSystemDataset::ToString() const {
268 std::string repr = "FileSystemDataset:";
269
270 if (fragments_.empty()) {
271 return repr + " []";
272 }
273
274 for (const auto& fragment : fragments_) {
275 repr += "\n" + fragment->source().path();
276
277 const auto& partition = fragment->partition_expression();
278 if (partition != compute::literal(true)) {
279 repr += ": " + partition.ToString();
280 }
281 }
282
283 return repr;
284}
285
286void FileSystemDataset::SetupSubtreePruning() {
287 subtrees_ = std::make_shared<FragmentSubtrees>();

Callers 15

CheckProjectableFunction · 0.45
ListFragmentTaskMethod · 0.45
ConvertKeyMethod · 0.45
FormatMethod · 0.45
DoInspectMethod · 0.45
FormatValuesMethod · 0.45
FragmentToBatchesFunction · 0.45
FromStructExpressionMethod · 0.45
MakeScanNodeFunction · 0.45
MakeAugmentedProjectNodeFunction · 0.45

Calls 4

sourceMethod · 0.80
literalFunction · 0.50
emptyMethod · 0.45
pathMethod · 0.45

Tested by 6

WriteRecordBatchMethod · 0.36
TEST_PFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
TEST_PFunction · 0.36
AssertPartitionMethod · 0.36