MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / _prepare_batch

Method _prepare_batch

misc/python/materialize/mzbuild.py:1366–1375  ·  view source on GitHub ↗
(self, images: list[ResolvedImage])

Source from the content-addressed store, hash-verified

1364 self._dependencies[d.name] = image
1365
1366 def _prepare_batch(self, images: list[ResolvedImage]) -> dict[type[PreImage], Any]:
1367 pre_images = collections.defaultdict(list)
1368 for image in images:
1369 for pre_image in image.image.pre_images:
1370 pre_images[type(pre_image)].append(pre_image)
1371 pre_image_prep = {}
1372 for cls, instances in pre_images.items():
1373 pre_image = cast(PreImage, cls)
1374 pre_image_prep[cls] = pre_image.prepare_batch(instances)
1375 return pre_image_prep
1376
1377 def acquire(self, max_retries: int | None = None) -> None:
1378 """Download or build all of the images in the dependency set that do not

Callers 2

acquireMethod · 0.95
ensureMethod · 0.95

Calls 3

appendMethod · 0.45
itemsMethod · 0.45
prepare_batchMethod · 0.45

Tested by

no test coverage detected