Private expression grouping many child expressions into one collection.
| 1288 | |
| 1289 | |
| 1290 | class CompositeExpr(Expr): |
| 1291 | """Private expression grouping many child expressions into one collection.""" |
| 1292 | |
| 1293 | _parameters = ["collection"] |
| 1294 | |
| 1295 | @property |
| 1296 | def collection(self): |
| 1297 | return self.operand("collection") |
| 1298 | |
| 1299 | @property |
| 1300 | def exprs(self): |
| 1301 | return tuple(self.operands[1:]) |
| 1302 | |
| 1303 | def dependencies(self): |
| 1304 | return self.exprs |
| 1305 | |
| 1306 | def _layer(self) -> dict: |
| 1307 | return {} |
| 1308 | |
| 1309 | def __dask_keys__(self) -> list: |
| 1310 | return [expr.__dask_keys__() for expr in self.exprs] |
| 1311 | |
| 1312 | def _operands_for_repr(self): |
| 1313 | return [ |
| 1314 | f"collection={type(self.collection).__name__}", |
| 1315 | f"nexprs={len(self.exprs)}", |
| 1316 | ] |
| 1317 | |
| 1318 | def finalize_compute(self): |
| 1319 | return CompositeFinalizeCompute(self.collection, *self.exprs) |
| 1320 | |
| 1321 | |
| 1322 | class _AnnotationsTombstone: ... |
no outgoing calls
no test coverage detected