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

Method ToString

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

Source from the content-addressed store, hash-verified

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