Package org.bson

Class Float32BinaryVector

java.lang.Object
org.bson.BinaryVector
org.bson.Float32BinaryVector

public final class Float32BinaryVector extends BinaryVector
Represents a vector of 32-bit floating-point numbers, where each element in the vector is a float.

The Float32BinaryVector is used to store and retrieve data efficiently using the BSON Binary Subtype 9 format.

Since:
5.3
See Also:
Since server release
6.0
  • Method Details

    • getData

      public float[] getData()
      Retrieve the underlying float array representing this Float32BinaryVector, where each float represents an element of a vector.

      NOTE: The underlying float array is not copied; changes to the returned array will be reflected in this instance.

      Returns:
      the underlying float array representing this Float32BinaryVector vector.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object