Package com.snowflake.snowpark_java
Class StoredProcedure
- java.lang.Object
-
- com.snowflake.snowpark_java.StoredProcedure
-
public class StoredProcedure extends Object
This reference to a Stored Procedure which can be created bySession.sproc().register
methods, and used inSession.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 Optional<String>
getName()
Get the name of the given stored procedure
-