public class AllocationHelper extends Object
Constructor and Description |
---|
AllocationHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
allocate(ValueVector v,
int valueCount,
int bytesPerValue) |
static void |
allocate(ValueVector v,
int valueCount,
int bytesPerValue,
int repeatedPerTop) |
static void |
allocateNew(ValueVector v,
int valueCount)
Allocates the exact amount if v is fixed width, otherwise falls back to dynamic allocation
|
static void |
allocatePrecomputedChildCount(ValueVector v,
int valueCount,
int bytesPerValue,
int childValCount) |
public static void allocate(ValueVector v, int valueCount, int bytesPerValue)
public static void allocatePrecomputedChildCount(ValueVector v, int valueCount, int bytesPerValue, int childValCount)
public static void allocate(ValueVector v, int valueCount, int bytesPerValue, int repeatedPerTop)
public static void allocateNew(ValueVector v, int valueCount)
v
- value vector we are trying to allocatevalueCount
- size we are trying to allocateOutOfMemoryException
- if it can't allocate the memoryCopyright © 2017 The Apache Software Foundation. All rights reserved.