Enum BoundedBlockingSubpartitionType
- java.lang.Object
-
- java.lang.Enum<BoundedBlockingSubpartitionType>
-
- org.apache.flink.runtime.io.network.partition.BoundedBlockingSubpartitionType
-
- All Implemented Interfaces:
Serializable,Comparable<BoundedBlockingSubpartitionType>
public enum BoundedBlockingSubpartitionType extends Enum<BoundedBlockingSubpartitionType>
The type of the BoundedBlockingSubpartition. Also doubles as the factory.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOSelects the BoundedBlockingSubpartition type based on the current memory architecture.FILEA BoundedBlockingSubpartition type that simply stores the partition data in a file.FILE_MMAPCreates a BoundedBlockingSubpartition that stores the partition data in a file and memory maps that file for reading.MMAPA BoundedBlockingSubpartition type that stores the partition data in memory mapped file.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.flink.runtime.io.network.partition.BoundedBlockingSubpartitioncreate(int index, ResultPartition parent, File tempFile, int readBufferSize, boolean sslEnabled)Creates BoundedBlockingSubpartition of this type.static BoundedBlockingSubpartitionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BoundedBlockingSubpartitionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE
public static final BoundedBlockingSubpartitionType FILE
A BoundedBlockingSubpartition type that simply stores the partition data in a file. Data is eagerly spilled (written to disk) and readers directly read from the file.
-
MMAP
public static final BoundedBlockingSubpartitionType MMAP
A BoundedBlockingSubpartition type that stores the partition data in memory mapped file. Data is written to and read from the mapped memory region. Disk spilling happens lazily, when the OS swaps out the pages from the memory mapped file.
-
FILE_MMAP
public static final BoundedBlockingSubpartitionType FILE_MMAP
Creates a BoundedBlockingSubpartition that stores the partition data in a file and memory maps that file for reading. Data is eagerly spilled (written to disk) and then mapped into memory. The main difference to theMMAPvariant is that no I/O is necessary when pages from the memory mapped file are evicted.
-
AUTO
public static final BoundedBlockingSubpartitionType AUTO
-
-
Method Detail
-
values
public static BoundedBlockingSubpartitionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BoundedBlockingSubpartitionType c : BoundedBlockingSubpartitionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoundedBlockingSubpartitionType valueOf(String name)
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
-
create
public abstract org.apache.flink.runtime.io.network.partition.BoundedBlockingSubpartition create(int index, ResultPartition parent, File tempFile, int readBufferSize, boolean sslEnabled) throws IOExceptionCreates BoundedBlockingSubpartition of this type.- Throws:
IOException
-
-