public class TieredStorageUtils extends Object
| Constructor and Description |
|---|
TieredStorageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BufferCompressor |
buildBufferCompressor(int bufferSizeBytes,
org.apache.flink.configuration.Configuration configuration)
Construct the
BufferCompressor from configuration. |
static boolean |
canBeCompressed(Buffer buffer,
BufferCompressor bufferCompressor)
Whether the buffer can be compressed or not.
|
static Buffer |
compressBufferIfPossible(Buffer buffer,
BufferCompressor bufferCompressor)
Try compress buffer if possible.
|
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)
public static Buffer compressBufferIfPossible(Buffer buffer, BufferCompressor bufferCompressor)
public static boolean canBeCompressed(Buffer buffer, BufferCompressor bufferCompressor)
public static BufferCompressor buildBufferCompressor(int bufferSizeBytes, org.apache.flink.configuration.Configuration configuration)
BufferCompressor from configuration.
Note: This is just a workaround for released version as we can not change the interface of
TierFactory.
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.