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