Class UuidVector.TransferImpl

java.lang.Object
org.apache.arrow.vector.UuidVector.TransferImpl
All Implemented Interfaces:
TransferPair
Enclosing class:
UuidVector

public class UuidVector.TransferImpl extends Object implements TransferPair
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Type
    Method
    Description
    void
    copyValueSafe(int fromIndex, int toIndex)
    Copies a value from the source vector to the target vector, expanding capacity if needed.
    Gets the target vector of this transfer pair.
    void
    splitAndTransfer(int startIndex, int length)
    Splits and transfers a range of values from the source vector to the target vector.
    void
    Transfers ownership of data from the source vector to the target vector.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TransferImpl

      public TransferImpl(UuidVector to)
      Constructs a transfer pair with the given target vector.
      Parameters:
      to - the target UUID vector
    • TransferImpl

      public TransferImpl(Field field, BufferAllocator allocator)
      Constructs a transfer pair, creating a new target vector from the field and allocator.
      Parameters:
      field - the field definition for the target vector
      allocator - the buffer allocator for the target vector
    • TransferImpl

      public TransferImpl(String ref, BufferAllocator allocator)
      Constructs a transfer pair, creating a new target vector with the given name and allocator.
      Parameters:
      ref - the name for the target vector
      allocator - the buffer allocator for the target vector
  • Method Details

    • getTo

      public UuidVector getTo()
      Gets the target vector of this transfer pair.
      Specified by:
      getTo in interface TransferPair
      Returns:
      the target UUID vector
    • transfer

      public void transfer()
      Transfers ownership of data from the source vector to the target vector.
      Specified by:
      transfer in interface TransferPair
    • 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:
      splitAndTransfer in interface TransferPair
      Parameters:
      startIndex - the starting index in the source vector
      length - 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:
      copyValueSafe in interface TransferPair
      Parameters:
      fromIndex - the index in the source vector
      toIndex - the index in the target vector