public enum ManagedMemoryUtils extends Enum<ManagedMemoryUtils>
| Modifier and Type | Method and Description |
|---|---|
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) |
static double |
getFractionRoundedDown(long dividend,
long divisor) |
static void |
validateUseCaseWeightsNotConflict(Map<org.apache.flink.core.memory.ManagedMemoryUseCase,Integer> weights1,
Map<org.apache.flink.core.memory.ManagedMemoryUseCase,Integer> weights2) |
static ManagedMemoryUtils |
valueOf(String name)
Returns 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.
|
public static ManagedMemoryUtils[] values()
for (ManagedMemoryUtils c : ManagedMemoryUtils.values()) System.out.println(c);
public static ManagedMemoryUtils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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)
public static double getFractionRoundedDown(long dividend,
long divisor)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.