## Uses of Interface
com.snowflake.snowpark_java.udf.JavaUDF2

- Packages that use JavaUDF2
  Package | Description
  --- | ---
  com.snowflake.snowpark_java | Provides most of the classes for the Snowpark Java API.

- - ### Uses of JavaUDF2 in com.snowflake.snowpark_java

    Methods in com.snowflake.snowpark_java with parameters of type JavaUDF2
    Modifier and Type | Method | Description
    --- | --- | ---
    `UserDefinedFunction` | UDFRegistration.`registerPermanent​(java.lang.String name, JavaUDF2<?,​?,​?> func, DataType[] input, DataType output, java.lang.String stageLocation)` | Registers a Java Lambda of 2 argument as a Snowflake Java UDF.
    `UserDefinedFunction` | UDFRegistration.`registerTemporary​(JavaUDF2<?,​?,​?> func, DataType[] input, DataType output)` | Registers a Java Lambda of 2 arguments as a temporary anonymous UDF that is scoped to this session.
    `UserDefinedFunction` | UDFRegistration.`registerTemporary​(java.lang.String name, JavaUDF2<?,​?,​?> func, DataType[] input, DataType output)` | Registers a Java Lambda of 2 arguments as a temporary UDF that is scoped to this session.
    `static UserDefinedFunction` | Functions.`udf​(JavaUDF2<?,​?,​?> func, DataType[] input, DataType output)` | Registers a Java Lambda of 2 arguments as a Snowflake UDF and returns the UDF.