Interface ExposesCall.AsFunction

All Known Subinterfaces:
StatementBuilder.OngoingStandaloneCallWithArguments, StatementBuilder.OngoingStandaloneCallWithoutArguments
Enclosing interface:
ExposesCall<T>

public static interface ExposesCall.AsFunction
Interface to allow creating an expression instead of a statement from an ongoing definition. To make this generate valid Cypher the stored procedure in question must be a valid function.
Since:
2020.1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull Expression
     
    @NotNull Expression
    asFunction(boolean distinct)
     
  • Method Details

    • asFunction

      @NotNull @Contract(pure=true) default @NotNull Expression asFunction()
      Returns:
      A function invocation that can be used as an expression, for example as a property or inside a condition.
    • asFunction

      @NotNull @Contract(pure=true) @NotNull Expression asFunction(boolean distinct)
      Parameters:
      distinct - Set to true for adding the DISTINCT for any of the aggregating functions.
      Returns:
      A distinct function invocation that can be used as an expression, for example as a property or inside a condition.
      Since:
      2021.2.2