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

Method _build_nested_paths

python/pyarrow/parquet/core.py:352–369  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

350 self.close()
351
352 def _build_nested_paths(self):
353 paths = self.reader.column_paths
354
355 result = defaultdict(list)
356
357 for i, path in enumerate(paths):
358 key = path[0]
359 rest = path[1:]
360 while True:
361 result[key].append(i)
362
363 if not rest:
364 break
365
366 key = '.'.join((key, rest[0]))
367 rest = rest[1:]
368
369 return result
370
371 @property
372 def metadata(self):

Callers 1

__init__Method · 0.95

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected