Enum ManagedMemoryUtils
- All Implemented Interfaces:
Serializable,Comparable<ManagedMemoryUtils>
Utils for configuration and calculations related to managed memory and its various use cases.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleconvertToFractionOfSlot(org.apache.flink.core.memory.ManagedMemoryUseCase useCase, double fractionOfUseCase, Set<org.apache.flink.core.memory.ManagedMemoryUseCase> allUseCases, org.apache.flink.configuration.Configuration jobConfig, org.apache.flink.configuration.Configuration clusterConfig, Optional<Boolean> stateBackendFromApplicationUsesManagedMemory, ClassLoader classLoader) static doublegetFractionRoundedDown(long dividend, long divisor) static voidvalidateUseCaseWeightsNotConflict(Map<org.apache.flink.core.memory.ManagedMemoryUseCase, Integer> weights1, Map<org.apache.flink.core.memory.ManagedMemoryUseCase, Integer> weights2) static ManagedMemoryUtilsReturns the enum constant of this type with the specified name.static ManagedMemoryUtils[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
convertToFractionOfSlot
public static double convertToFractionOfSlot(org.apache.flink.core.memory.ManagedMemoryUseCase useCase, double fractionOfUseCase, Set<org.apache.flink.core.memory.ManagedMemoryUseCase> allUseCases, org.apache.flink.configuration.Configuration jobConfig, org.apache.flink.configuration.Configuration clusterConfig, Optional<Boolean> stateBackendFromApplicationUsesManagedMemory, ClassLoader classLoader) -
getFractionRoundedDown
public static double getFractionRoundedDown(long dividend, long divisor) -
validateUseCaseWeightsNotConflict
-