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

Method prepare_batch

misc/python/materialize/mzbuild.py:527–535  ·  view source on GitHub ↗

Prepare a batch of actions. This is useful for `PreImage` actions that are more efficient when their actions are applied to several images in bulk. Returns an arbitrary output that is passed to `PreImage.run`.

(cls, instances: list["PreImage"])

Source from the content-addressed store, hash-verified

525
526 @classmethod
527 def prepare_batch(cls, instances: list["PreImage"]) -> Any:
528 """Prepare a batch of actions.
529
530 This is useful for `PreImage` actions that are more efficient when
531 their actions are applied to several images in bulk.
532
533 Returns an arbitrary output that is passed to `PreImage.run`.
534 """
535 pass
536
537 def run(self, prep: Any) -> None:
538 """Perform the action.

Callers 2

prepare_batchMethod · 0.45
_prepare_batchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected