Package com.influxdb.v3.client.internal
Class VectorSchemaRootConverter
java.lang.Object
com.influxdb.v3.client.internal.VectorSchemaRootConverter
The VectorSchemaRootConverter class is responsible for converting rows of data from a VectorSchemaRoot object
to PointValues. It provides a method to perform this conversion.
This class is thread-safe.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
getArrayObjectFromVectorSchemaRoot
(org.apache.arrow.vector.VectorSchemaRoot vector, int rowNumber) Get array of values from VectorSchemaRoot.getMappedValue
(org.apache.arrow.vector.types.pojo.Field field, Object value) Function to cast value return base on metadata from InfluxDB.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
VectorSchemaRootConverter
public VectorSchemaRootConverter()
-
-
Method Details
-
getMappedValue
public Object getMappedValue(@Nonnull org.apache.arrow.vector.types.pojo.Field field, @Nullable Object value) Function to cast value return base on metadata from InfluxDB.- Parameters:
field
- the Field object from Arrowvalue
- the value to cast- Returns:
- the value with the correct type
-
getArrayObjectFromVectorSchemaRoot
public Object[] getArrayObjectFromVectorSchemaRoot(@Nonnull org.apache.arrow.vector.VectorSchemaRoot vector, int rowNumber) Get array of values from VectorSchemaRoot.- Parameters:
vector
- The data return from InfluxDB.rowNumber
- The row number of data- Returns:
- An array of Objects represents a row of data
-