Package org.bson
Class Int8BinaryVector
java.lang.Object
org.bson.BinaryVector
org.bson.Int8BinaryVector
Represents a vector of 8-bit signed integers, where each element in the vector is a byte.
The Int8BinaryVector
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 byte[] getData()Retrieve the underlying byte array representing thisInt8BinaryVector
vector, where each byte represents an element of a vector.NOTE: The underlying byte array is not copied; changes to the returned array will be reflected in this instance.
- Returns:
- the underlying byte array representing this
Int8BinaryVector
vector.
-
equals
-
hashCode
public int hashCode() -
toString
-