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
ConstructorsConstructorDescriptionHyperVectorWrapper(MaterializedField f, T[] v) HyperVectorWrapper(MaterializedField f, T[] v, boolean releasable) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddVectors(ValueVector[] vv) voidclear()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[]booleanisHyper()voidtransfer(VectorWrapper<?> destination) Transfer vectors to destination HyperVectorWrapper.voidupdateVectorList(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:
getVectorClassin interfaceVectorWrapper<T extends ValueVector>
-
getField
- Specified by:
getFieldin interfaceVectorWrapper<T extends ValueVector>
-
getValueVector
- Specified by:
getValueVectorin interfaceVectorWrapper<T extends ValueVector>
-
getValueVectors
- Specified by:
getValueVectorsin interfaceVectorWrapper<T extends ValueVector>
-
isHyper
public boolean isHyper()- Specified by:
isHyperin interfaceVectorWrapper<T extends ValueVector>
-
clear
public void clear()- Specified by:
clearin interfaceVectorWrapper<T extends ValueVector>
-
getChildWrapper
- Specified by:
getChildWrapperin interfaceVectorWrapper<T extends ValueVector>
-
getFieldIdIfMatches
Description copied from interface:VectorWrapperTraverse 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:
getFieldIdIfMatchesin interfaceVectorWrapper<T extends ValueVector>- Returns:
- TypedFieldId
-
cloneAndTransfer
- Specified by:
cloneAndTransferin 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:
transferin 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
-