Documentation Index
Fetch the curated documentation index at: https://archive.grafana.com/llms.txt
Fetch the complete documentation index at: https://archive.grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: /docs/grafana/v8.5/packages_api/data/appendedvectors.md (append .md) or send Accept: text/markdown to /docs/grafana/v8.5/packages_api/data/appendedvectors/. For the curated documentation index, use https://archive.grafana.com/llms.txt. For the complete documentation index, use https://archive.grafana.com/llms-full.txt.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
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
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[]