Package org.duckdb

Interface DuckDBScalarFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DuckDBScalarFunction
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Processes a full input chunk and writes one output value per row directly into the DuckDB output vector.
  • Method Details

    • apply

      void apply(DuckDBDataChunkReader input, DuckDBWritableVector output) throws Exception
      Processes a full input chunk and writes one output value per row directly into the DuckDB output vector.

      The context and all wrappers returned from it are valid only for the duration of the callback and must not be retained.

      Parameters:
      input - data chunk with function arguments
      output - vector to write function results into
      Throws:
      Exception - when function execution fails