public class TieredStorageUtils extends Object
| 构造器和说明 |
|---|
TieredStorageUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ByteBuffer[] |
generateBufferWithHeaders(List<org.apache.flink.api.java.tuple.Tuple2<Buffer,Integer>> bufferWithIndexes) |
static int |
getAccumulatorExclusiveBuffers()
Get exclusive buffer number of accumulator.
|
static String |
getDiskTierName() |
static String |
getMemoryTierName() |
static int |
getMinBuffersPerGate()
Get the number of minimum buffers per input gate.
|
static int |
getMinBuffersPerResultPartition()
*
Get the number of minimum buffers per result partition.
|
static float |
getNumBuffersTriggerFlushRatio()
When the number of buffers that have been requested exceeds this threshold, trigger the
flushing operation in each
TierProducerAgent. |
static long |
getPoolSizeCheckInterval()
Get the pool size check interval.
|
static String |
getRemoteTierName() |
public static float getNumBuffersTriggerFlushRatio()
TierProducerAgent.public static int getAccumulatorExclusiveBuffers()
The buffer number is used to compare with the subpartition number to determine the type of
BufferAccumulator.
If the exclusive buffer number is larger than (subpartitionNum + 1), the accumulator will
use HashBufferAccumulator. If the exclusive buffer number is equal to or smaller than
(subpartitionNum + 1), the accumulator will use SortBufferAccumulator
public static long getPoolSizeCheckInterval()
public static int getMinBuffersPerGate()
public static int getMinBuffersPerResultPartition()
Get the number of minimum buffers per result partition.
public static String getMemoryTierName()
public static String getDiskTierName()
public static String getRemoteTierName()
public static ByteBuffer[] generateBufferWithHeaders(List<org.apache.flink.api.java.tuple.Tuple2<Buffer,Integer>> bufferWithIndexes)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.