Package org.apache.drill.exec.record
Class HyperVectorWrapper<T extends ValueVector>
java.lang.Object
org.apache.drill.exec.record.HyperVectorWrapper<T>
- All Implemented Interfaces:
VectorWrapper<T>
-
Constructor Summary
ConstructorDescriptionHyperVectorWrapper
(MaterializedField f, T[] v) HyperVectorWrapper
(MaterializedField f, T[] v, boolean releasable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addVectors
(ValueVector[] vv) void
clear()
cloneAndTransfer
(BufferAllocator allocator) static <T extends ValueVector>
HyperVectorWrapper<T>create
(MaterializedField f, T[] v, boolean releasable) getChildWrapper
(int[] ids) getField()
getFieldIdIfMatches
(int id, SchemaPath expectedPath) Traverse the object graph and determine whether the provided SchemaPath matches data within the Wrapper.T[]
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
-
Constructor Details
-
HyperVectorWrapper
-
HyperVectorWrapper
-
-
Method Details
-
getVectorClass
- Specified by:
getVectorClass
in interfaceVectorWrapper<T extends ValueVector>
-
getField
- Specified by:
getField
in interfaceVectorWrapper<T extends ValueVector>
-
getValueVector
- Specified by:
getValueVector
in interfaceVectorWrapper<T extends ValueVector>
-
getValueVectors
- Specified by:
getValueVectors
in interfaceVectorWrapper<T extends ValueVector>
-
isHyper
public boolean isHyper()- Specified by:
isHyper
in interfaceVectorWrapper<T extends ValueVector>
-
clear
public void clear()- Specified by:
clear
in interfaceVectorWrapper<T extends ValueVector>
-
getChildWrapper
- Specified by:
getChildWrapper
in interfaceVectorWrapper<T extends ValueVector>
-
getFieldIdIfMatches
Description copied from interface:VectorWrapper
Traverse the object graph and determine whether the provided SchemaPath matches data within the Wrapper. If so, return a TypedFieldId associated with this path.- Specified by:
getFieldIdIfMatches
in interfaceVectorWrapper<T extends ValueVector>
- Returns:
- TypedFieldId
-
cloneAndTransfer
- Specified by:
cloneAndTransfer
in interfaceVectorWrapper<T extends ValueVector>
-
create
public static <T extends ValueVector> HyperVectorWrapper<T> create(MaterializedField f, T[] v, boolean releasable) -
addVector
-
addVectors
-
transfer
Transfer vectors to destination HyperVectorWrapper. Both this and destination must be of same type and have same number of vectors.- Specified by:
transfer
in interfaceVectorWrapper<T extends ValueVector>
- Parameters:
destination
- destination HyperVectorWrapper.
-
updateVectorList
Method to replace existing list of vectors with the newly provided ValueVectors list in this HyperVectorWrapper- Parameters:
vv
- - New list of ValueVectors to be stored
-