java.lang.Object
org.apache.arrow.vector.UuidVector.TransferImpl
- All Implemented Interfaces:
TransferPair
- Enclosing class:
- UuidVector
TransferPair for UuidVector.-
Constructor Summary
ConstructorsConstructorDescriptionTransferImpl(String ref, BufferAllocator allocator) Constructs a transfer pair, creating a new target vector with the given name and allocator.TransferImpl(Field field, BufferAllocator allocator) Constructs a transfer pair, creating a new target vector from the field and allocator.Constructs a transfer pair with the given target vector. -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyValueSafe(int fromIndex, int toIndex) Copies a value from the source vector to the target vector, expanding capacity if needed.getTo()Gets the target vector of this transfer pair.voidsplitAndTransfer(int startIndex, int length) Splits and transfers a range of values from the source vector to the target vector.voidtransfer()Transfers ownership of data from the source vector to the target vector.
-
Constructor Details
-
TransferImpl
Constructs a transfer pair with the given target vector.- Parameters:
to- the target UUID vector
-
TransferImpl
Constructs a transfer pair, creating a new target vector from the field and allocator.- Parameters:
field- the field definition for the target vectorallocator- the buffer allocator for the target vector
-
TransferImpl
Constructs a transfer pair, creating a new target vector with the given name and allocator.- Parameters:
ref- the name for the target vectorallocator- the buffer allocator for the target vector
-
-
Method Details
-
getTo
Gets the target vector of this transfer pair.- Specified by:
getToin interfaceTransferPair- Returns:
- the target UUID vector
-
transfer
public void transfer()Transfers ownership of data from the source vector to the target vector.- Specified by:
transferin interfaceTransferPair
-
splitAndTransfer
public void splitAndTransfer(int startIndex, int length) Splits and transfers a range of values from the source vector to the target vector.- Specified by:
splitAndTransferin interfaceTransferPair- Parameters:
startIndex- the starting index in the source vectorlength- the number of values to transfer
-
copyValueSafe
public void copyValueSafe(int fromIndex, int toIndex) Copies a value from the source vector to the target vector, expanding capacity if needed.- Specified by:
copyValueSafein interfaceTransferPair- Parameters:
fromIndex- the index in the source vectortoIndex- the index in the target vector
-