public class HyperVectorWrapper<T extends ValueVector> extends Object implements VectorWrapper<T>
| Constructor and Description |
|---|
HyperVectorWrapper(MaterializedField f,
T[] v) |
HyperVectorWrapper(MaterializedField f,
T[] v,
boolean releasable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVector(ValueVector v) |
void |
addVectors(ValueVector[] vv) |
void |
clear() |
VectorWrapper<T> |
cloneAndTransfer(BufferAllocator allocator) |
static <T extends ValueVector> |
create(MaterializedField f,
T[] v,
boolean releasable) |
VectorWrapper<?> |
getChildWrapper(int[] ids) |
MaterializedField |
getField() |
TypedFieldId |
getFieldIdIfMatches(int id,
SchemaPath expectedPath)
Traverse the object graph and determine whether the provided SchemaPath matches data within the Wrapper.
|
T |
getValueVector() |
T[] |
getValueVectors() |
Class<T> |
getVectorClass() |
boolean |
isHyper() |
void |
transfer(VectorWrapper<?> destination)
Transfer vectors to destination HyperVectorWrapper.
|
void |
updateVectorList(ValueVector[] vv)
Method to replace existing list of vectors with the newly provided ValueVectors list in this HyperVectorWrapper
|
public HyperVectorWrapper(MaterializedField f, T[] v)
public HyperVectorWrapper(MaterializedField f, T[] v, boolean releasable)
public Class<T> getVectorClass()
getVectorClass in interface VectorWrapper<T extends ValueVector>public MaterializedField getField()
getField in interface VectorWrapper<T extends ValueVector>public T getValueVector()
getValueVector in interface VectorWrapper<T extends ValueVector>public T[] getValueVectors()
getValueVectors in interface VectorWrapper<T extends ValueVector>public boolean isHyper()
isHyper in interface VectorWrapper<T extends ValueVector>public void clear()
clear in interface VectorWrapper<T extends ValueVector>public VectorWrapper<?> getChildWrapper(int[] ids)
getChildWrapper in interface VectorWrapper<T extends ValueVector>public TypedFieldId getFieldIdIfMatches(int id, SchemaPath expectedPath)
VectorWrappergetFieldIdIfMatches in interface VectorWrapper<T extends ValueVector>public VectorWrapper<T> cloneAndTransfer(BufferAllocator allocator)
cloneAndTransfer in interface VectorWrapper<T extends ValueVector>public static <T extends ValueVector> HyperVectorWrapper<T> create(MaterializedField f, T[] v, boolean releasable)
public void addVector(ValueVector v)
public void addVectors(ValueVector[] vv)
public void transfer(VectorWrapper<?> destination)
transfer in interface VectorWrapper<T extends ValueVector>destination - destination HyperVectorWrapper.public void updateVectorList(ValueVector[] vv)
vv - - New list of ValueVectors to be storedCopyright © 2021 The Apache Software Foundation. All rights reserved.