IDataSliceCollection
An iterable collection of data slices.
export interface IDataSliceCollection extends Iterable<IDataSlice>
Extends: Iterable<IDataSlice>
Remarks
The collection additionally includes basic information about the origin of the data slices that can be iterated - their number and attributes or totals that were used for slicing.
The slices are iterated in the order in which they appear in the underlying results; server side sorting specified at the execution time is thus reflected and honored during the iteration.
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| number | Number of available data slices | |
| Array<IAttributeDescriptor | ITotal> | Descriptors of attributes and/or totals that were used to create data slices. |
Methods
Method | Description |
|---|---|
Returns all data slices in an array. |
Property details
IDataSliceCollection.countproperty
Number of available data slices
readonly count: number;
IDataSliceCollection.descriptorsproperty
Descriptors of attributes and/or totals that were used to create data slices.
readonly descriptors: Array<IAttributeDescriptor | ITotal>;
Method details
IDataSliceCollection.toArray()method
Returns all data slices in an array.
toArray(): IDataSlice[];
Returns
empty if no data slices