| Modifier and Type | Method and Description |
|---|---|
SessionBuilder |
config(String key,
String value)
Adds the specified configuration property and value to the SessionBuilder configuration.
|
SessionBuilder |
configFile(String path)
Adds the configuration properties in the specified file to the
SessionBuilder
configuration. |
SessionBuilder |
configs(Map<String,String> configs)
Adds the specified Map of configuration properties to the SessionBuilder configuration.
|
Session |
create()
Creates a new
Session. |
public SessionBuilder configFile(String path)
SessionBuilder
configuration.path - Path to the file containing the configuration properties.SessionBuilder object.public SessionBuilder config(String key, String value)
key - Name of the configuration property.value - Value of the configuration property.public SessionBuilder configs(Map<String,String> configs)
Note that calling this method overwrites any existing configuration properties that you have already set in the SessionBuilder.
configs - A Java Map contains configurationspublic Session create()
Session.Session object© 2023 Snowflake Inc. All Rights Reserved