Class TypeValidators.MaxWidthValidator
java.lang.Object
org.apache.drill.exec.server.options.OptionValidator
org.apache.drill.exec.server.options.TypeValidators.TypeValidator
org.apache.drill.exec.server.options.TypeValidators.LongValidator
org.apache.drill.exec.server.options.TypeValidators.MaxWidthValidator
- Enclosing class:
- TypeValidators
Max width is a special validator which computes and validates
the maxwidth. If the maxwidth is already set in system/session
the value is returned or else it is computed dynamically based on
the available number of processors and cpu load average
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.server.options.OptionValidator
OptionValidator.OptionDescription
-
Constructor Summary
ConstructorDescriptionMaxWidthValidator
(String name, OptionValidator.OptionDescription description) -
Method Summary
Methods inherited from class org.apache.drill.exec.server.options.TypeValidators.TypeValidator
getConfigProperty, getKind, validate
Methods inherited from class org.apache.drill.exec.server.options.OptionValidator
getOptionDescription, getOptionName, getTtl, isShortLived
-
Constructor Details
-
MaxWidthValidator
-
-
Method Details
-
computeMaxWidth
public int computeMaxWidth(double cpuLoadAverage, long maxWidth)
-