grafana/docs/sources/packages_api/data/appendedvectors.md
Marcus Andersson cc3fc18076
Docs: enable packages reference docs for 7-beta (#23953)
* added packages reference menu item.

* removed the draft flag.

* Updated docs by running script.
2020-04-28 09:53:58 +02:00

3.0 KiB

+++

-----------------------------------------------------------------------

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

export declare class AppendedVectors<T = any> implements Vector<T> 

Import

import { AppendedVectors } from '@grafana/data';

Constructors

Constructor Modifiers Description
constructor(startAt) Constructs a new instance of the AppendedVectors class

Properties

Property Modifiers Type Description
length number
source Array<AppendedVectorInfo<T>>

Methods

Method Modifiers Description
append(v)
get(index)
setLength(length) Make the vector look like it is this long
toArray()
toJSON()

constructor(startAt)

Constructs a new instance of the AppendedVectors class

Signature

constructor(startAt?: number);

Parameters

Parameter Type Description
startAt number

length property

Signature

length: number;

source property

Signature

source: Array<AppendedVectorInfo<T>>;

append method

Signature

append(v: Vector<T>): AppendedVectorInfo<T>;

Parameters

Parameter Type Description
v Vector<T>

Returns:

AppendedVectorInfo<T>

get method

Signature

get(index: number): T;

Parameters

Parameter Type Description
index number

Returns:

T

setLength method

Make the vector look like it is this long

Signature

setLength(length: number): void;

Parameters

Parameter Type Description
length number

Returns:

void

toArray method

Signature

toArray(): T[];

Returns:

T[]

toJSON method

Signature

toJSON(): T[];

Returns:

T[]