object Common
- Alphabetic
- By Inheritance
- Common
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class UnsafeArraySeqOps[T] extends AnyRef
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
camelToSnakeCase(name: String): String
Converts camelCase name into snake_case name
Converts camelCase name into snake_case name
- name
camelCase name to convert
- returns
snake_case name
-
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
getFieldsMap[T <: Product with Serializable](obj: T)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Map[String, Any]
Collects field values of case class in form of Map(field_name -> field_value).
Collects field values of case class in form of Map(field_name -> field_value). Also unpacks Refined and DateFormat fields if any (required for proper JSON serialization)
- T
Generic type constrained to case classes
- obj
Case class instance to get field values from
- returns
Map of case class fields with values.
-
def
getPrependVars(extraVariables: Map[String, String]): String
Retrieves DQ variables from environment, combines them with explicitly provided variables and then converts them into a string that will be prepended to a configuration prior reading.
Retrieves DQ variables from environment, combines them with explicitly provided variables and then converts them into a string that will be prepended to a configuration prior reading.
- extraVariables
Explicitly provided extra variables.
- returns
String with variables to be prepended to configuration.
- Note
Variables are collected from system and java-runtime environment and retained only those that are related to Checkita Data Quality Framework: following regex is used to find such variables:
^(?i)(DQ)[a-z0-9_-]+$
. These variables are combined with the ones provided in
extraVariablesargument and further used during configuration files parsing.
-
def
getStringHash(s: String): String
Builds MD5 hash for input string.
Builds MD5 hash for input string.
- s
String to build has for.
- returns
MD5 hash string.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val jsonFormats: DefaultFormats.type
-
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()
-
def
paramsSeqToMap(paramsSeq: Seq[String]): Map[String, String]
Converts sequence of parameter strings with format "k=v" into a Map(k -> v)
Converts sequence of parameter strings with format "k=v" into a Map(k -> v)
- paramsSeq
Sequence of parameter strings
- returns
Parameters Map
-
def
prepareConfig(configs: Seq[String], prependVars: String, confName: String): Result[InputStreamReader]
Prepares configuration files for reading.
Prepares configuration files for reading. The idea here is following:
- system and user-provided variables are need to be prepended to the configuration file(s)
- HOCON support configuration merging, and, therefore, we also allows multiple files for input.
- In order to merge variables and multiple configuration files, the sequence of input streams is created.
- configs
Sequence of configuration files for parsing (order maters! please, refer to HOCON specifications for more details)
- prependVars
System and user-defined variables to be used in confuguration files.
- confName
Name of configuration being read (either 'application' or 'job')
- returns
Either configuration input stream reader ready for parsing or a list of occurred errors.
-
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()