Interface AggregateParams

All Known Implementing Classes:
GatewayOnlyParams, NoParams, OpaqueParams, PercentileParams, StringAggParams

public interface AggregateParams
Marker for the typed parameter records carried by an AggregateSpec; each parameterized aggregate declares its own record. Records usable on any backend live in this package, and backend-specific ones in the backend's package.

The default toMap() flattens the record's components through RecordReflection, converting enums by name. Override it for components it cannot flatten, such as nested records.

  • Method Summary

    Modifier and Type
    Method
    Description
    default Map<String,Object>
    Returns the parameters as a JSON-friendly map, for wire transport and catalog metadata.
  • Method Details

    • toMap

      default Map<String,Object> toMap()
      Returns the parameters as a JSON-friendly map, for wire transport and catalog metadata.
      Returns:
      the parameters by component name.