object SparkSingletons extends Logging
Singletons an initialization code related to Spark.
While Spark provides various getOrCreate methods, this allows WASP to initialize Spark in a cleaner way and in just a few places and access the various entry points in a much more straightforward way.
- Alphabetic
- By Inheritance
- SparkSingletons
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getSQLContext: SQLContext
Returns the SQLContext singleton, or throws an exception if Spark was not initialized.
Returns the SQLContext singleton, or throws an exception if Spark was not initialized.
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalStateExceptionif Spark was not already initialized
-
def
getSparkContext: SparkContext
Returns the SparkContext singleton, or throws an exception if Spark was not initialized.
Returns the SparkContext singleton, or throws an exception if Spark was not initialized.
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalStateExceptionif Spark was not already initialized
-
def
getSparkSession: SparkSession
Returns the SparkSession singleton, or throws an exception if Spark was not initialized.
Returns the SparkSession singleton, or throws an exception if Spark was not initialized.
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalStateExceptionif Spark was not already initialized
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initializeSpark(sparkConfigModel: SparkConfigModel, telemetryConfig: TelemetryConfigModel, kafkaConfigModel: KafkaConfigModel): Boolean
Try to initialize the SparkSession in the SparkSingleton with the provided configuration.
Try to initialize the SparkSession in the SparkSingleton with the provided configuration.
If it does not exist, it will be created using the settings from
sparkConfigModeland true will be returned.If the SparkSession already exists, nothing will be done, and false will be returned.
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalStateExceptionif Spark was already initialized but not by using this method
-
def
initializeSpark(sparkConfigModel: SparkConfigModel, telemetryConfig: TelemetryConfigModel, kafkaConfigProxy: KafkaConfigProxy): Boolean
Wrapper around SparkConfigModel, telemetryConfig: TelemetryConfigModel, kafkaConfigModel: KafkaConfigModel) that uses the default kafka cluster for telemetry
Wrapper around SparkConfigModel, telemetryConfig: TelemetryConfigModel, kafkaConfigModel: KafkaConfigModel) that uses the default kafka cluster for telemetry
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalStateExceptionif Spark was already initialized but not by using this method
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: WaspLogger
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()