Package com.snowflake.snowpark_java
Class SessionBuilder
- java.lang.Object
-
- com.snowflake.snowpark_java.SessionBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionBuilderconfig(String key, String value)Adds the specified configuration property and value to the SessionBuilder configuration.SessionBuilderconfigFile(String path)Adds the configuration properties in the specified file to theSessionBuilderconfiguration.SessionBuilderconfigs(Map<String,String> configs)Adds the specified Map of configuration properties to the SessionBuilder configuration.Sessioncreate()Creates a newSession.
-
-
-
Method Detail
-
configFile
public SessionBuilder configFile(String path)
Adds the configuration properties in the specified file to theSessionBuilderconfiguration.- Parameters:
path- Path to the file containing the configuration properties.- Returns:
- This
SessionBuilderobject. - Since:
- 0.8.0
-
config
public SessionBuilder config(String key, String value)
Adds the specified configuration property and value to the SessionBuilder configuration.- Parameters:
key- Name of the configuration property.value- Value of the configuration property.- Returns:
- A reference of this SessionBuilder object
- Since:
- 1.1.0
-
configs
public SessionBuilder configs(Map<String,String> configs)
Adds the specified Map of configuration properties to the SessionBuilder configuration.Note that calling this method overwrites any existing configuration properties that you have already set in the SessionBuilder.
- Parameters:
configs- A Java Map contains configurations- Returns:
- A reference of this SessionBuilder object
- Since:
- 1.1.0
-
create
public Session create()
Creates a newSession.- Returns:
- A
Sessionobject - Since:
- 0.8.0
-
-