public enum ResultPartitionType extends Enum<ResultPartitionType>
Enum Constant and Description |
---|
BLOCKING |
PIPELINED |
PIPELINED_BOUNDED
Pipelined partitions with a bounded (local) buffer pool.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasBackPressure() |
boolean |
isBlocking() |
boolean |
isBounded()
Whether this partition uses a limited number of (network) buffers or not.
|
boolean |
isPipelined() |
static ResultPartitionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultPartitionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultPartitionType BLOCKING
public static final ResultPartitionType PIPELINED
public static final ResultPartitionType PIPELINED_BOUNDED
For streaming jobs, a fixed limit on the buffer pool size should help avoid that too much data is being buffered and checkpoint barriers are delayed. In contrast to limiting the overall network buffer pool size, this, however, still allows to be flexible with regards to the total number of partitions by selecting an appropriately big network buffer pool size.
For batch jobs, it will be best to keep this unlimited (PIPELINED
) since there are
no checkpoint barriers.
public static ResultPartitionType[] values()
for (ResultPartitionType c : ResultPartitionType.values()) System.out.println(c);
public static ResultPartitionType 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 boolean hasBackPressure()
public boolean isBlocking()
public boolean isPipelined()
public boolean isBounded()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.