public class ValueVectorUtility extends Object
ValueVector
.Modifier and Type | Method and Description |
---|---|
static void |
ensureCapacity(VectorSchemaRoot root,
int targetCapacity)
Ensure capacity for BaseFixedWidthVector.
|
static <V extends ValueVector> |
getToString(V vector,
int start,
int end)
Get the toString() representation of vector suitable for debugging.
|
static <V extends ValueVector> |
getToString(V vector,
int start,
int end,
BiFunction<V,Integer,Object> valueToString)
Get the toString() representation of vector suitable for debugging.
|
static void |
preAllocate(VectorSchemaRoot root,
int targetSize)
Pre allocate memory for BaseFixedWidthVector.
|
static void |
validate(ValueVector vector)
Utility to validate vector in O(1) time.
|
static void |
validate(VectorSchemaRoot root)
Utility to validate vector schema root in O(1) time.
|
static void |
validateFull(ValueVector vector)
Utility to validate vector in O(n) time, where n is the value count.
|
static void |
validateFull(VectorSchemaRoot root)
Utility to validate vector in O(n) time, where n is the value count.
|
public static <V extends ValueVector> String getToString(V vector, int start, int end)
public static <V extends ValueVector> String getToString(V vector, int start, int end, BiFunction<V,Integer,Object> valueToString)
vector
- the vector for which to get toString representation.start
- the starting index, inclusive.end
- the end index, exclusive.valueToString
- the function to transform individual elements to strings.public static void validate(ValueVector vector)
public static void validateFull(ValueVector vector)
public static void validate(VectorSchemaRoot root)
public static void validateFull(VectorSchemaRoot root)
public static void preAllocate(VectorSchemaRoot root, int targetSize)
public static void ensureCapacity(VectorSchemaRoot root, int targetCapacity)
Copyright © 2024 The Apache Software Foundation. All rights reserved.