class SessionBuilder extends AnyRef
- Alphabetic
- By Inheritance
- SessionBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SessionBuilder()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def appName(appName: String): SessionBuilder
Adds the app name to set in the query_tag after session creation.
Adds the app name to set in the query_tag after session creation.
Since version 1.13.0, the app name is set to the query tag in JSON format. For example:
val session = Session.builder.appName("myApp").configFile(myConfigFile).create print(session.getQueryTag().get) {"APPNAME":"myApp"}
In previous versions it is set using a key=value format. For example:
val session = Session.builder.appName("myApp").configFile(myConfigFile).create print(session.getQueryTag().get) APPNAME=myApp
- appName
Name of the app.
- returns
- Since
1.12.0
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def config(key: String, value: String): SessionBuilder
Adds the specified configuration property and value to the SessionBuilder configuration.
Adds the specified configuration property and value to the SessionBuilder configuration.
- key
Name of the configuration property.
- value
Value of the configuration property.
- returns
- Since
0.1.0
- def configFile(file: String): SessionBuilder
Adds the configuration properties in the specified file to the SessionBuilder configuration.
Adds the configuration properties in the specified file to the SessionBuilder configuration.
- file
Path to the file containing the configuration properties.
- returns
- Since
0.1.0
- def configs(javaMap: Map[String, String]): SessionBuilder
Adds the specified Java
Mapof configuration properties to the SessionBuilder configuration.Adds the specified Java
Mapof configuration properties to the SessionBuilder configuration.Note that calling this method overwrites any existing configuration properties that you have already set in the SessionBuilder.
- Since
0.2.0
- def configs(configs: Map[String, String]): SessionBuilder
Adds the specified
Mapof configuration properties to the SessionBuilder configuration.Adds the specified
Mapof configuration properties to the SessionBuilder configuration.Note that calling this method overwrites any existing configuration properties that you have already set in the SessionBuilder.
- configs
Map of the names and values of configuration properties.
- returns
- Since
0.1.0
- def create: Session
Creates a new Session.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getOrCreate: Session
Returns the existing session if already exists or create it if not.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)