Package org.bson

Class Int8BinaryVector

java.lang.Object
org.bson.BinaryVector
org.bson.Int8BinaryVector

public final class Int8BinaryVector extends BinaryVector
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
  • Method Details

    • getData

      public byte[] getData()
      Retrieve the underlying byte array representing this Int8BinaryVector 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

      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