StoredProcedure (Snowpark Java API Reference 1.19.0)

Package com.snowflake.snowpark_java

## Class StoredProcedure

- java.lang.Object
- - com.snowflake.snowpark_java.StoredProcedure

-     public class StoredProcedure
      extends java.lang.Object

  This reference to a Stored Procedure which can be created by `Session.sproc().register` methods, and used in `Session.storedProcedure()` method.

  For example:

       StoredProcedure sproc = session.sproc.registerTemporary(
         (Session session, Integer num) -> {
           int result = session.sql("select " + num).collect()[0].getInt(0);
           return result + 100;
         }, DataTypes.IntegerType, DataTypes.IntegerType
       );
       session.storedProcedure(sproc, 123).show();

  Since:
    1.8.0

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.Optional<java.lang.String>` | `getName()` | Get the name of the given stored procedure

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getName

          public java.util.Optional<java.lang.String> getName()

      Get the name of the given stored procedure
      Returns:
        the name of the given stored procedure
      Since:
        1.8.0