Class YieldFlux

All Implemented Interfaces:
Expression, HasImports

public final class YieldFlux extends AbstractParametrizedFlux
Yield a query results to yielded results. See SPEC.

Options

  • name - The unique name to give to yielded results [string].

Example

 Flux flux = Flux
     .from("telegraf")
     .yield("0");
 
Author:
Jakub Bednar (bednar@github) (29/06/2018 09:55)
  • Constructor Details

    • YieldFlux

      public YieldFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

      @Nonnull protected String operatorName()
      Specified by:
      operatorName in class AbstractParametrizedFlux
      Returns:
      name of function
    • withName

      @Nonnull public final YieldFlux withName(@Nonnull String name)
      Parameters:
      name - The unique name to give to yielded results. Has to be defined.
      Returns:
      this
    • collectImports

      public void collectImports(@Nonnull Set<String> collectedImports)
      Description copied from class: Flux
      Collects all imports of the flux.
      Overrides:
      collectImports in class Flux
      Parameters:
      collectedImports - a set to be filled by the used imports