CostProviderpublic class DefaultCostProvider extends java.lang.Object implements CostProvider
| Constructor | Description |
|---|---|
DefaultCostProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getCost(ProcessingDetails details) |
Returns 1, regardless of the processing details.
|
void |
init(java.lang.String namespace,
Configuration conf) |
Initialize this provider using the given configuration, examining only
ones which fall within the provided namespace.
|
public void init(java.lang.String namespace,
Configuration conf)
CostProviderinit in interface CostProvidernamespace - The namespace to use when looking up configurations.conf - The configurationpublic long getCost(ProcessingDetails details)
getCost in interface CostProviderdetails - Process details (ignored)Copyright © 2008–2025 Apache Software Foundation. All rights reserved.