Home Reference Source
import Vector from 'neo4j-driver-core/lib/vector.js'
public class | source

Vector

A wrapper class for JavaScript TypedArrays that makes the driver send them as a Vector type to the database.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

asTypedArray(): Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | BigInt64Array

Converts the Vector back to a typedArray

public

Gets the type of the Vector

public

Public Constructors

public constructor() source

Public Methods

public asTypedArray(): Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | BigInt64Array source

Converts the Vector back to a typedArray

Return:

Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | BigInt64Array

a TypedArray of the Vectors type.

public getType(): VectorType source

Gets the type of the Vector

Return:

VectorType

The type of the vector, corresponding to the type of the wrapped TypedArray.

public toString() source