public class AllocationHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STD_REPETITION_FACTOR |
| Constructor and Description |
|---|
AllocationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
allocate(ValueVector vector,
int valueCount,
int bytesPerValue) |
static void |
allocate(ValueVector vector,
int valueCount,
int bytesPerValue,
float repeatedPerTop)
Allocate an array, but with a fractional value for the number of elements
per array.
|
static void |
allocate(ValueVector vector,
int valueCount,
int bytesPerValue,
int repeatedPerTop) |
static void |
allocateNew(ValueVector vector,
int valueCount)
Allocates the exact amount if v is fixed width, otherwise falls back to dynamic allocation
|
static void |
allocatePrecomputedChildCount(ValueVector vector,
int valueCount,
int bytesPerValue,
int childValCount) |
public static final int STD_REPETITION_FACTOR
public static void allocate(ValueVector vector, int valueCount, int bytesPerValue)
public static void allocatePrecomputedChildCount(ValueVector vector, int valueCount, int bytesPerValue, int childValCount)
public static void allocate(ValueVector vector, int valueCount, int bytesPerValue, int repeatedPerTop)
public static void allocate(ValueVector vector, int valueCount, int bytesPerValue, float repeatedPerTop)
vector - the vector to allocatevalueCount - the number of top-level valuesbytesPerValue - the width of each valuerepeatedPerTop - the number of array elements per value.public static void allocateNew(ValueVector vector, int valueCount)
vector - value vector we are trying to allocatevalueCount - size we are trying to allocateorg.apache.drill.exec.memory.OutOfMemoryException - if it can't allocate the memoryCopyright © 2021 The Apache Software Foundation. All rights reserved.