Skip to main content

CostEstimator

Protocol for records that can estimate their own processing cost.

Methods​


estimate_cost()​

@classmethod
def estimate_cost() - > int

Calculates the processing cost of the record to allow the batcher to manage capacity automatically when no explicit cost is provided.

Returns​

TypeDescription
intThe calculated cost value representing the resource consumption or size of the record