Class/Object

com.salesforce.op

OpParams

Related Docs: object OpParams | package op

Permalink

final class OpParams extends JsonLike

OpParams for passing in command line information

Linear Supertypes
JsonLike, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OpParams
  2. JsonLike
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OpParams()

    Permalink
  2. new OpParams(stageParams: Map[String, Map[String, Any]], readerParams: Map[String, ReaderParams], modelLocation: Option[String], writeLocation: Option[String], metricsLocation: Option[String], metricsCompress: Option[Boolean], metricsCodec: Option[String], batchDurationSecs: Option[Int], awaitTerminationTimeoutSecs: Option[Int], customTagName: Option[String], customTagValue: Option[String], logStageMetrics: Option[Boolean], collectStageMetrics: Option[Boolean], customParams: Map[String, Any], alternateReaderParams: Map[String, ReaderParams])

    Permalink

    stageParams

    a map of parameters to inject into stages. Format is Map(StageSimpleName -> Map(ParameterName -> Value)). Allows changing parameters away from defaults (and only defaults) at the level of stage type (all stages of the same type will get the same setting. Note: Will NOT override parameter values that have been set previously in code OR with a previous set of parameters.

    readerParams

    a map of parameters to inject into readers. Format is Map(ReaderType -> Map(ParameterName -> Value)). In order to use these parameters the read method in the reader must be overwritten to specifically take and use these parameters.

    modelLocation

    location to save model to or read model from

    writeLocation

    location to write out any data generated by flow

    metricsLocation

    location to write out any metrics generated by flow

    metricsCompress

    should compress metrics file

    metricsCodec

    compress with the supplied codec

    batchDurationSecs

    the time interval at which streaming data will be divided into batches

    awaitTerminationTimeoutSecs

    the time to await until streaming context termination

    customTagName

    tag name printed on log lines (e.g., by com.salesforce.op.utils.spark.OpSparkListener)

    customTagValue

    the value for the tag printed on log lines (e.g., by com.salesforce.op.utils.spark.OpSparkListener)

    logStageMetrics

    if com.salesforce.op.utils.spark.OpSparkListener should log metrics for every stage. Note: can increase logging significantly if app has too many stages.

    collectStageMetrics

    if com.salesforce.op.utils.spark.OpSparkListener should collect metrics for every stage. Note: can increase memory usage on the driver if app has too many stages.

    customParams

    any custom parameters

    alternateReaderParams

    a map of parameters to inject into readers - other than the main reader being called in the workflow run Format is Map(ReaderType -> Map(ParameterName -> Value)). In order to use these parameters the read method in the reader must be overwritten to specifically take and use these parameters.

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 alternateReaderParams: Map[String, ReaderParams]

    Permalink

    a map of parameters to inject into readers - other than the main reader being called in the workflow run Format is Map(ReaderType -> Map(ParameterName -> Value)).

    a map of parameters to inject into readers - other than the main reader being called in the workflow run Format is Map(ReaderType -> Map(ParameterName -> Value)). In order to use these parameters the read method in the reader must be overwritten to specifically take and use these parameters.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val awaitTerminationTimeoutSecs: Option[Int]

    Permalink

    the time to await until streaming context termination

  7. val batchDurationSecs: Option[Int]

    Permalink

    the time interval at which streaming data will be divided into batches

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val collectStageMetrics: Option[Boolean]

    Permalink

    if com.salesforce.op.utils.spark.OpSparkListener should collect metrics for every stage.

    if com.salesforce.op.utils.spark.OpSparkListener should collect metrics for every stage. Note: can increase memory usage on the driver if app has too many stages.

  10. def copy(stageParams: Map[String, Map[String, Any]] = this.stageParams, readerParams: Map[String, ReaderParams] = this.readerParams, modelLocation: Option[String] = this.modelLocation, writeLocation: Option[String] = this.writeLocation, metricsLocation: Option[String] = this.metricsLocation, metricsCompress: Option[Boolean] = this.metricsCompress, metricsCodec: Option[String] = this.metricsCodec, batchDurationSecs: Option[Int] = this.batchDurationSecs, awaitTerminationTimeoutSecs: Option[Int] = this.awaitTerminationTimeoutSecs, customTagName: Option[String] = this.customTagName, customTagValue: Option[String] = this.customTagValue, logStageMetrics: Option[Boolean] = this.logStageMetrics, collectStageMetrics: Option[Boolean] = this.collectStageMetrics, customParams: Map[String, Any] = this.customParams, alternateReaderParams: Map[String, ReaderParams] = this.alternateReaderParams): OpParams

    Permalink
  11. val customParams: Map[String, Any]

    Permalink

    any custom parameters

  12. val customTagName: Option[String]

    Permalink

    tag name printed on log lines (e.g., by com.salesforce.op.utils.spark.OpSparkListener)

  13. val customTagValue: Option[String]

    Permalink

    the value for the tag printed on log lines (e.g., by com.salesforce.op.utils.spark.OpSparkListener)

  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. val logStageMetrics: Option[Boolean]

    Permalink

    if com.salesforce.op.utils.spark.OpSparkListener should log metrics for every stage.

    if com.salesforce.op.utils.spark.OpSparkListener should log metrics for every stage. Note: can increase logging significantly if app has too many stages.

  21. val metricsCodec: Option[String]

    Permalink

    compress with the supplied codec

  22. val metricsCompress: Option[Boolean]

    Permalink

    should compress metrics file

  23. val metricsLocation: Option[String]

    Permalink

    location to write out any metrics generated by flow

  24. val modelLocation: Option[String]

    Permalink

    location to save model to or read model from

  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. val readerParams: Map[String, ReaderParams]

    Permalink

    a map of parameters to inject into readers.

    a map of parameters to inject into readers. Format is Map(ReaderType -> Map(ParameterName -> Value)). In order to use these parameters the read method in the reader must be overwritten to specifically take and use these parameters.

  29. val stageParams: Map[String, Map[String, Any]]

    Permalink

    a map of parameters to inject into stages.

    a map of parameters to inject into stages. Format is Map(StageSimpleName -> Map(ParameterName -> Value)). Allows changing parameters away from defaults (and only defaults) at the level of stage type (all stages of the same type will get the same setting. Note: Will NOT override parameter values that have been set previously in code OR with a previous set of parameters.

  30. def switchReaderParams(): OpParams

    Permalink

    Switch the reader params with the alternate reader params and return a new params instance this is necessary because the readers will always try to use readerParams so if you want to use the alternate reader params they need to be moved to readerParams

    Switch the reader params with the alternate reader params and return a new params instance this is necessary because the readers will always try to use readerParams so if you want to use the alternate reader params they need to be moved to readerParams

    returns

    a new params instance

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toJson(pretty: Boolean): String

    Permalink
    Definition Classes
    JsonLike
  33. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withValues(readLocations: Map[String, String] = Map.empty, writeLocation: Option[String] = None, modelLocation: Option[String] = None, metricsLocation: Option[String] = None, batchDurationSecs: Option[Int] = None, awaitTerminationTimeoutSecs: Option[Int] = None, alternateReadLocations: Map[String, String] = Map.empty): OpParams

    Permalink

    Copy op params with new specified values

    Copy op params with new specified values

    readLocations

    read locations

    writeLocation

    write locations

    modelLocation

    model location

    metricsLocation

    metrics location

    batchDurationSecs

    the time interval at which streaming data will be divided into batches

    awaitTerminationTimeoutSecs

    the time to await until streaming context termination

    alternateReadLocations

    read locations for readers other than the main reader in the workflow

    returns

    a copy of params with new values

  38. val writeLocation: Option[String]

    Permalink

    location to write out any data generated by flow

Inherited from JsonLike

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped