Skip to main content

CostEstimator

Protocol for records that can estimate their own processing cost.

Methods​


estimate_cost()​

@classmethod
def estimate_cost() -> int

Estimates the processing cost of the record, used automatically by the batcher when no explicit cost is provided.

Returns​

TypeDescription
intThe estimated processing cost of the record.