Class Aggregator<T1, T2, T3, T4>
Constructors
constructor
Parameters
entity: T1
Optional spotifyId: string
Properties
spotifyId
spotifyId: string
Methods
aggregate
aggregate( normalized?: boolean ) : Promise < T2 >
Parameters
Default value normalized: boolean = true
Returns Promise < T2 >
redisKey
redisKey( normalized: boolean ) : string
Parameters
Returns string
Static csvHeader
Type parameters
Parameters
Static csvHeaderFromArray
Static fields
Type parameters
Parameters
Returns string []
Static stripLabels
Type parameters
Parameters
Returns A4
Static writeToCsv
writeToCsv<A1, A2, A3, A4>( aggregation: A2 | A2 [] , aggregationGenerator: AggregationGenerator < A1 , A2 , A3 , A4 > , fileName: string , baseDir: string ) : Promise < void >
Type parameters
Parameters
aggregation: A2 | A2 []
fileName: string
baseDir: string
Returns Promise < void >
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Superclass for all data aggregators. Creates a structured method for pulling and normalizing data from the database into usable Aggregation objects.