Enum BoundedBlockingSubpartitionType
java.lang.Object
java.lang.Enum<BoundedBlockingSubpartitionType>
org.apache.flink.runtime.io.network.partition.BoundedBlockingSubpartitionType
- All Implemented Interfaces:
Serializable,Comparable<BoundedBlockingSubpartitionType>
The type of the BoundedBlockingSubpartition. Also doubles as the factory.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSelects the BoundedBlockingSubpartition type based on the current memory architecture.A BoundedBlockingSubpartition type that simply stores the partition data in a file.Creates a BoundedBlockingSubpartition that stores the partition data in a file and memory maps that file for reading.A BoundedBlockingSubpartition type that stores the partition data in memory mapped file. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.flink.runtime.io.network.partition.BoundedBlockingSubpartitioncreate(int index, ResultPartition parent, File tempFile, int readBufferSize, boolean sslEnabled) Creates BoundedBlockingSubpartition of this type.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 Details
-
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
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
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
-
-
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
-
create
public abstract org.apache.flink.runtime.io.network.partition.BoundedBlockingSubpartition create(int index, ResultPartition parent, File tempFile, int readBufferSize, boolean sslEnabled) throws IOException Creates BoundedBlockingSubpartition of this type.- Throws:
IOException
-