Object

com.coxautodata.waimak.configuration

CaseClassConfigParser

Related Doc: package configuration

Permalink

object CaseClassConfigParser extends Logging

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CaseClassConfigParser
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class separator(s: String) extends Annotation with StaticAnnotation with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CONFIG_PROPERTIES_FILE_URI: String

    Permalink

    URI of the properties file used by the PropertiesFilePropertyProviderBuilder object.

    URI of the properties file used by the PropertiesFilePropertyProviderBuilder object. Used when CONFIG_PROPERTY_PROVIDER_BUILDER_MODULES includes PropertiesFilePropertyProviderBuilder. File will be opened using an Hadoop FileSystem object, therefore URI must be supported by your Hadoop libraries and configuration must be present in the HadoopConfiguration on the SparkSession.

  5. val CONFIG_PROPERTY_PROVIDER_BUILDER_MODULES: String

    Permalink

    Comma separated list of property provider builder object names to instantiate.

    Comma separated list of property provider builder object names to instantiate. Set this to have the config parser use the custom objects to search for configuration parameter values in these property providers.

  6. val CONFIG_PROPERTY_PROVIDER_BUILDER_MODULES_DEFAULT: List[String]

    Permalink
  7. val CONFIG_PROPERTY_PROVIDER_GET_RETRIES: String

    Permalink

    Number of retries used when requesting parameter values from property providers

  8. val CONFIG_PROPERTY_PROVIDER_GET_RETRIES_DEFAULT: Int

    Permalink
  9. val CONFIG_PROPERTY_PROVIDER_GET_TIMEOUTMS: String

    Permalink

    Timeout in milliseconds used when requesting parameter values from property providers

  10. val CONFIG_PROPERTY_PROVIDER_GET_TIMEOUTMS_DEFAULT: Long

    Permalink
  11. val SPARK_CONF_PROPERTY_PREFIX: String

    Permalink

    Prefix to add to parameters when looking in the Spark conf.

    Prefix to add to parameters when looking in the Spark conf. For example, if looking for parameter args.arg1 then the parser will look for spark.args.arg1 in the Spark conf by default. This can be disabled by setting this property to an empty string.

  12. val SPARK_CONF_PROPERTY_PREFIX_DEFAULT: String

    Permalink
  13. def apply[A](context: SparkFlowContext, prefix: String, additionalConf: Map[String, String] = Map.empty)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): A

    Permalink

    Populate a Case Class from an instance of SparkConf.

    Populate a Case Class from an instance of SparkConf. It will attempt to cast the configuration values to the correct types, and most primitive, Option[primitive], and List/Seq/Vector[primitive] types are supported. Default arguments in the case class will also be respected. Option types will not be set to None if they are not specified in the SparkConf unless None is the default value in the case class. The separator for collection types (List,Seq,Vector) is by default "," but can be changed with '@separator("..")' annotation on the parameter in the case class. The parameters keys that are looked up will be of the form: {prefix}{parameter}, e.g. for case class Ex(key: String) and prefix="example.prefix.", then the key will have the form "example.prefix.key" By default, properties in the SparkConf will be looked up with an additional prefix (see SPARK_CONF_PROPERTY_PREFIX). The order in which properties are looked up are: 1) Spark Conf, 2) Additional conf map, 3) Property Providers (in order they were specified if multiple were given)

    A

    Case class type to construct

    context

    Instance of SparkFlowContext containing a spark session with configuration

    prefix

    Prefix to assign to a Key when looking in SparkConf

    additionalConf

    An additional set of properties to search. Preference is given to SparkConf values if the key exists in both this additionalConf and SparkConf

    returns

    An instantiated case class populated from the SparkConf instance and default arguments

    Annotations
    @throws( classOf[NoSuchElementException] ) @throws( ... ) @throws( classOf[NumberFormatException] ) @throws( classOf[IllegalArgumentException] )
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val configParamPrefix: String

    Permalink
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fromMap[A](conf: Map[String, String], prefix: String = "", properties: Seq[PropertyProvider] = Seq.empty, timeoutMs: Long = ..., retries: Int = ...)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): A

    Permalink
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def getStrippedSparkProperties(conf: RuntimeConfig, prefix: String): Map[String, String]

    Permalink
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logAndReturn[A](a: A, msg: String, level: Level): A

    Permalink

    Takes a value of type A and a msg to log, returning a and logging the message at the desired level

    Takes a value of type A and a msg to log, returning a and logging the message at the desired level

    returns

    a

    Definition Classes
    Logging
  27. def logAndReturn[A](a: A, message: (A) ⇒ String, level: Level): A

    Permalink

    Takes a value of type A and a function message from A to String, logs the value of invoking message(a) at the level described by the level parameter

    Takes a value of type A and a function message from A to String, logs the value of invoking message(a) at the level described by the level parameter

    returns

    a

    Definition Classes
    Logging
    Example:
    1. logAndReturn(1, (num: Int) => s"number: $num", Info)
      // In the log we would see a log corresponding to "number 1"
  28. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  30. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped