+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "AppendedVectors" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## AppendedVectors class This may be more trouble than it is worth. This trades some computation time for RAM -- rather than allocate a new array the size of all previous arrays, this just points the correct index to their original array values Signature ```typescript export declare class AppendedVectors implements Vector ``` Import ```typescript import { AppendedVectors } from '@grafana/data'; ``` Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [constructor(startAt)](#constructor-startat) | | Constructs a new instance of the AppendedVectors class | Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [length](#length-property) | | number | | | [source](#source-property) | | Array<AppendedVectorInfo<T>> | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [append(v)](#append-method) | | | | [get(index)](#get-method) | | | | [setLength(length)](#setlength-method) | | Make the vector look like it is this long | | [toArray()](#toarray-method) | | | | [toJSON()](#tojson-method) | | | ### constructor(startAt) Constructs a new instance of the `AppendedVectors` class Signature ```typescript constructor(startAt?: number); ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | startAt | number | | ### length property Signature ```typescript length: number; ``` ### source property Signature ```typescript source: Array>; ``` ### append method Signature ```typescript append(v: Vector): AppendedVectorInfo; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | v | Vector<T> | | Returns: `AppendedVectorInfo` ### get method Signature ```typescript get(index: number): T; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | index | number | | Returns: `T` ### setLength method Make the vector look like it is this long Signature ```typescript setLength(length: number): void; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | length | number | | Returns: `void` ### toArray method Signature ```typescript toArray(): T[]; ``` Returns: `T[]` ### toJSON method Signature ```typescript toJSON(): T[]; ``` Returns: `T[]`