MongoDB\BSON\Binary::getVectorType

Returns the data type for a Binary with the vector subtype

Description

final public MongoDB\BSON\VectorType MongoDB\BSON\Binary::getVectorType()

Parameters

This function has no parameters.

Return Values

Returns the data type of the Binary vector.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\LogicException if the subtype is not MongoDB\BSON\Binary::SUBTYPE_VECTOR.
  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

See Also