Class FirstFlux

All Implemented Interfaces:
Expression, HasImports

public final class FirstFlux extends AbstractParametrizedFlux
Returns the first result of the query. See SPEC.

Example

 Flux flux = Flux
     .from("telegraf")
     .first();
 
Author:
Jakub Bednar (bednar@github) (25/06/2018 09:28)
  • Constructor Details

    • FirstFlux

      public FirstFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

      @Nonnull protected String operatorName()
      Specified by:
      operatorName in class AbstractParametrizedFlux
      Returns:
      name of function
    • 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