Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScriptAggregator<K, V, R>

ScriptAggregator is a EntryAggregator that wraps a script written in one of the languages supported by Graal VM.

author

mk 2019.09.24

since

14.1.1.0

Type parameters

  • K = any

    the type of the Map entry keys

  • V = any

    the type of the Map entry values

  • R = any

    the type of the final result

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ScriptAggregator(language: string, name: string, args?: any[]): ScriptAggregator
  • Create a EntryAggregator that wraps the specified script.

    Parameters

    • language: string

      the language language with which the script is written in. Currently, only js (for JavaScript) is supported

    • name: string

      the name of the Filter that needs to be evaluated

    • Optional args: any[]

      the arguments to be passed to the script for evaluation

    Returns ScriptAggregator

Properties

Protected @class

@class: string

Server-side EntryAggregator implementation type identifier.

Protected args

args: any[]

The arguments to be passed to the script for evaluation

Protected Optional extractor

extractor: ValueExtractor

The extractor.ValueExtractor to apply when aggregating results.

Protected language

language: string

The language with which the script is written in.

Protected name

name: string

The name of the EntryAggregator that needs to be evaluated.

Methods

andThen