Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiExtractor

Composite ValueExtractor implementation based on an array of extractors. All extractors in the array are applied to the same target object and the result of the extraction is a array of extracted values.

Common scenarios for using the MultiExtractor involve the DistinctValuesAggregator or GroupAggregator aggregators that allow clients to collect all distinct combinations of a given set of attributes or collect and run additional aggregation against the corresponding groups of entries.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected @class

@class: string

Server-side ValueExtractor implementation type identifier.

extractors

extractors: ValueExtractor[]

Methods

andThen

  • Returns a composed extractor that first applies this extractor to its input, and then applies the after extractor to the result. If evaluation of either extractor throws an exception, it is relayed to the caller of the composed extractor.

    Parameters

    • after: ValueExtractor

      the extractor to apply after this extractor is applied

    Returns ValueExtractor

    a composed extractor that first applies this extractor and then applies the after extractor

compose

  • Returns a composed extractor that first applies the before extractor to its input, and then applies this extractor to the result. If evaluation of either extractor throws an exception, it is relayed to the caller of the composed extractor.

    Parameters

    • before: ValueExtractor

      the extractor to apply before this extractor is applied

    Returns ValueExtractor

    a composed extractor that first applies the before extractor and then applies this extractor

Static Protected createExtractors

  • Parse a comma-delimited sequence of method names and instantiate a corresponding array of ValueExtractor objects.

    Parameters

    • methods: string

      a comma-delimited sequence of method names

    Returns ValueExtractor[]

    an array of ValueExtractor objects