Package org.bson
Class Float32BinaryVector
java.lang.Object
org.bson.BinaryVector
org.bson.Float32BinaryVector
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bson.BinaryVector
BinaryVector.DataType
-
Method Summary
Methods inherited from class org.bson.BinaryVector
asFloat32Vector, asInt8Vector, asPackedBitVector, floatVector, getDataType, int8Vector, packedBitVector
-
Method Details
-
getData
public float[] getData()Retrieve the underlying float array representing thisFloat32BinaryVector
, 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
-
hashCode
public int hashCode() -
toString
-