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

Constructors

  • Create a EntryAggregator that wraps the specified script.

    Type Parameters

    • K = any

    • V = any

    • R = any

    Parameters

    • language: string

      the 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<K, V, R>

Properties

@class: string

Server-side EntryAggregator implementation type identifier.

args: any[]

The arguments to be passed to the script for evaluation

characteristics: number

Present only for serialization purposes.

extractor?: ValueExtractor

The ValueExtractor to apply when aggregating results.

language: string

The language with which the script is written in.

name: string

The name of the EntryAggregator that needs to be evaluated.

Methods