Class FieldVectorAdapter

java.lang.Object
io.deephaven.client.impl.FieldVectorAdapter
All Implemented Interfaces:
Array.Visitor<org.apache.arrow.vector.FieldVector>, PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>

public class FieldVectorAdapter extends Object implements Array.Visitor<org.apache.arrow.vector.FieldVector>, PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
Utilities for creating FieldVector.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.arrow.vector.FieldVector
    of(Column<?> column, org.apache.arrow.memory.BufferAllocator allocator)
    Convert a column into a FieldVector.
    static org.apache.arrow.vector.FieldVector
    of(String name, Array<?> array, org.apache.arrow.memory.BufferAllocator allocator)
    Convert a name and an array into a FieldVector.
    org.apache.arrow.vector.FieldVector
    visit(BooleanArray booleanArray)
     
    org.apache.arrow.vector.FieldVector
    visit(ByteArray byteArray)
     
    org.apache.arrow.vector.FieldVector
    visit(CharArray charArray)
     
    org.apache.arrow.vector.FieldVector
    visit(DoubleArray doubleArray)
     
    org.apache.arrow.vector.FieldVector
    visit(FloatArray floatArray)
     
    org.apache.arrow.vector.FieldVector
    visit(GenericArray<?> generic)
     
    org.apache.arrow.vector.FieldVector
    visit(IntArray intArray)
     
    org.apache.arrow.vector.FieldVector
    visit(LongArray longArray)
     
    org.apache.arrow.vector.FieldVector
    visit(PrimitiveArray<?> primitive)
     
    org.apache.arrow.vector.FieldVector
    visit(ShortArray shortArray)
     

    Methods inherited from class java.lang.Object

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

    • of

      public static org.apache.arrow.vector.FieldVector of(Column<?> column, org.apache.arrow.memory.BufferAllocator allocator)
      Convert a column into a FieldVector.
      Parameters:
      column - the column
      allocator - the allocator
      Returns:
      the field vector
    • of

      public static org.apache.arrow.vector.FieldVector of(String name, Array<?> array, org.apache.arrow.memory.BufferAllocator allocator)
      Convert a name and an array into a FieldVector.
      Parameters:
      name - the column name
      array - the array
      allocator - the allocator
      Returns:
      the field vector
    • visit

      public org.apache.arrow.vector.FieldVector visit(PrimitiveArray<?> primitive)
      Specified by:
      visit in interface Array.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(GenericArray<?> generic)
      Specified by:
      visit in interface Array.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(ByteArray byteArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(BooleanArray booleanArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(CharArray charArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(ShortArray shortArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(IntArray intArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(LongArray longArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(FloatArray floatArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
    • visit

      public org.apache.arrow.vector.FieldVector visit(DoubleArray doubleArray)
      Specified by:
      visit in interface PrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>