VectorArrayData

API definition

VectorArrayData {

int length;

int maxlen;

int dim;

size_t itemsize;

char *items;

}

Function

Defines the data encapsulation structure.

Input

N/A

Output

N/A

Parameter

int length: number of vectors stored in the structure.

int maxlen: maximum number of vectors stored in the structure.

int dim: vector dimension stored in the structure.

size_t itemsize: reserved field. You can choose not to set it.

char *items: pointer for storing data in VectorArrayData. The default value is nullptr.

Restrictions

  • 1 ≤ length ≤ 100000000
  • maxlen is a reserved field in the openGauss side. For non-openGauss users, set this parameter to the value of length.
  • 1 ≤ dim ≤ 2000
  • For different APIs, ensure that items point to data of different sizes.