Class VectorSchemaRootConverter

java.lang.Object
com.influxdb.v3.client.internal.VectorSchemaRootConverter

@ThreadSafe public final class VectorSchemaRootConverter extends Object
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 Details

  • 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 Arrow
      value - 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