Class SlotSharingGroup.Builder
- java.lang.Object
-
- org.apache.flink.api.common.operators.SlotSharingGroup.Builder
-
- Enclosing class:
- SlotSharingGroup
public static class SlotSharingGroup.Builder extends Object
Builder for theSlotSharingGroup.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlotSharingGroupbuild()Build the SlotSharingGroup.SlotSharingGroup.BuildersetCpuCores(double cpuCores)Set the CPU cores for this SlotSharingGroup.SlotSharingGroup.BuildersetExternalResource(String name, double value)Add the given external resource.SlotSharingGroup.BuildersetManagedMemory(org.apache.flink.configuration.MemorySize managedMemory)Set the task managed memory for this SlotSharingGroup.SlotSharingGroup.BuildersetManagedMemoryMB(int managedMemoryMB)Set the task managed memory for this SlotSharingGroup in MB.SlotSharingGroup.BuildersetTaskHeapMemory(org.apache.flink.configuration.MemorySize taskHeapMemory)Set the task heap memory for this SlotSharingGroup.SlotSharingGroup.BuildersetTaskHeapMemoryMB(int taskHeapMemoryMB)Set the task heap memory for this SlotSharingGroup in MB.SlotSharingGroup.BuildersetTaskOffHeapMemory(org.apache.flink.configuration.MemorySize taskOffHeapMemory)Set the task off-heap memory for this SlotSharingGroup.SlotSharingGroup.BuildersetTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)Set the task off-heap memory for this SlotSharingGroup in MB.
-
-
-
Method Detail
-
setCpuCores
public SlotSharingGroup.Builder setCpuCores(double cpuCores)
Set the CPU cores for this SlotSharingGroup.
-
setTaskHeapMemory
public SlotSharingGroup.Builder setTaskHeapMemory(org.apache.flink.configuration.MemorySize taskHeapMemory)
Set the task heap memory for this SlotSharingGroup.
-
setTaskHeapMemoryMB
public SlotSharingGroup.Builder setTaskHeapMemoryMB(int taskHeapMemoryMB)
Set the task heap memory for this SlotSharingGroup in MB.
-
setTaskOffHeapMemory
public SlotSharingGroup.Builder setTaskOffHeapMemory(org.apache.flink.configuration.MemorySize taskOffHeapMemory)
Set the task off-heap memory for this SlotSharingGroup.
-
setTaskOffHeapMemoryMB
public SlotSharingGroup.Builder setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)
Set the task off-heap memory for this SlotSharingGroup in MB.
-
setManagedMemory
public SlotSharingGroup.Builder setManagedMemory(org.apache.flink.configuration.MemorySize managedMemory)
Set the task managed memory for this SlotSharingGroup.
-
setManagedMemoryMB
public SlotSharingGroup.Builder setManagedMemoryMB(int managedMemoryMB)
Set the task managed memory for this SlotSharingGroup in MB.
-
setExternalResource
public SlotSharingGroup.Builder setExternalResource(String name, double value)
Add the given external resource. The old value with the same resource name will be replaced if present.
-
build
public SlotSharingGroup build()
Build the SlotSharingGroup.
-
-