Package io.deephaven.client.impl
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 TypeMethodDescriptionstatic org.apache.arrow.vector.FieldVector
Convert acolumn
into aFieldVector
.static org.apache.arrow.vector.FieldVector
Convert aname
and anarray
into aFieldVector
.org.apache.arrow.vector.FieldVector
visit
(BooleanArray booleanArray) org.apache.arrow.vector.FieldVector
org.apache.arrow.vector.FieldVector
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
org.apache.arrow.vector.FieldVector
org.apache.arrow.vector.FieldVector
visit
(PrimitiveArray<?> primitive) org.apache.arrow.vector.FieldVector
visit
(ShortArray shortArray)
-
Method Details
-
of
public static org.apache.arrow.vector.FieldVector of(Column<?> column, org.apache.arrow.memory.BufferAllocator allocator) Convert acolumn
into aFieldVector
.- Parameters:
column
- the columnallocator
- 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 aname
and anarray
into aFieldVector
.- Parameters:
name
- the column namearray
- the arrayallocator
- the allocator- Returns:
- the field vector
-
visit
- Specified by:
visit
in interfaceArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfaceArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-
visit
- Specified by:
visit
in interfacePrimitiveArray.Visitor<org.apache.arrow.vector.FieldVector>
-