Object

com.alpine.plugin.core.utils

HdfsParameterUtils

Related Doc: package utils

Permalink

object HdfsParameterUtils extends OutputParameterUtils

Utility for the standard parameters for use by operators which use HDFS datasets.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HdfsParameterUtils
  2. OutputParameterUtils
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def addDropIfExistsParameter(operatorDialog: OperatorDialog, defaultValue: Boolean = true): DialogElement

    Permalink

    For use with database, not HDFS.

    For use with database, not HDFS.

    operatorDialog

    From the 'onExecution' method's parameters. This method adds the parameters to this object.

    defaultValue

    boolean indicating default value of the parameter. True for "Yes", false for "No".

    returns

    The dialog element added.

    Definition Classes
    OutputParameterUtils
  5. def addHdfsCompressionParameter(operatorDialog: OperatorDialog, defaultCompression: HdfsCompressionType): DropdownBox

    Permalink

    Adds a dropdown menu to select the compression Type for a tabular dataset output.

    Adds a dropdown menu to select the compression Type for a tabular dataset output. I.e., it'll add a dropdown menu with available selections 'No Compression', 'Snappy', 'GZIP' and 'Deflate'.

    operatorDialog

    The operator dialog where you are going to add the dropdown menu.

    defaultCompression

    The default compression one wants to use.

    returns

    The dropdown dialog element.

  6. def addHdfsStorageAndCompressionParameters(operatorDialog: OperatorDialog): Seq[DialogElement]

    Permalink

    * Same method as addHdfsStorageAndCompressionParameters defined above, with: - default storage format as Parquet - default compression as Gzip

  7. def addHdfsStorageAndCompressionParameters(operatorDialog: OperatorDialog, defaultStorageFormat: HdfsStorageFormatType, defaultCompression: HdfsCompressionType): Seq[DialogElement]

    Permalink

    Adds -- "storageFormat": an Dropdown Box for storage format.

    Adds -- "storageFormat": an Dropdown Box for storage format. -- "compressionType": a Dropdown Box for compression type.

    Note: The compression type selected must be supported by the storage format chosen, otherwise the CO will stay invalid at design time.

    operatorDialog

    The default value for the output name parameter.

    defaultStorageFormat

    The default format one wants to use.

    defaultCompression

    The default compression one wants to use.

    returns

    A sequence of the dialog elements added.

  8. def addHdfsStorageFormatParameter(operatorDialog: OperatorDialog, defaultFormat: HdfsStorageFormatType): DialogElement

    Permalink

    Adds a dropdown menu to select the storage format for a tabular dataset output.

    Adds a dropdown menu to select the storage format for a tabular dataset output. I.e., it'll add a dropdown menu with available selections 'CSV', 'Parquet' and 'Avro'.

    operatorDialog

    The operator dialog where you are going to add the dropdown menu.

    defaultFormat

    The default format one wants to use.

    returns

    The dropdown dialog element.

  9. def addNullDataReportParameter(operatorDialog: OperatorDialog, message: String = ...): DialogElement

    Permalink
  10. def addOutputDirectorySelector(operatorDialog: OperatorDialog): DialogElement

    Permalink

    Adds directory selector box to let the user select the location in HDFS where the results of the operator will be written

    Adds directory selector box to let the user select the location in HDFS where the results of the operator will be written

    operatorDialog

    The dialog to which the parameter will be added.

  11. def addOutputNameParameter(operatorDialog: OperatorDialog, defaultOutputName: String): DialogElement

    Permalink

    adds a string dialog box to let the user define the name of the file with the output.

    adds a string dialog box to let the user define the name of the file with the output.

    operatorDialog

    The dialog to which the parameter will be added.

    defaultOutputName

    The default value to be used for the parameter.

  12. def addOverwriteParameter(operatorDialog: OperatorDialog, defaultValue: Boolean = true): DialogElement

    Permalink
    Definition Classes
    OutputParameterUtils
  13. def addStandardHdfsOutputParameters(operatorDialog: OperatorDialog, defaultOutputName: String = operatorNameUUIDVariable): Seq[DialogElement]

    Permalink

    Adds -- "outputDirectory": an HDFS directory selector for the location of the output -- "outputName": a StringBox parameter for the name of the output.

    Adds -- "outputDirectory": an HDFS directory selector for the location of the output -- "outputName": a StringBox parameter for the name of the output. -- "overwrite": A Boolean parameter asking if the user wants to overwrite old output.

    These are the standard parameters to be used when an operator outputs a HDFS dataset.

    The default value of the output name will be @operator_name_uuid, which will be replaced at runtime with the actual operator name and uuid concatenated with a underscore, sanitized to make it a valid file name.

    defaultOutputName

    The default value for the output name parameter.

    returns

    A sequence of the dialog elements added.

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. val badDataLocation: String

    Permalink
  16. val badDataReportParameterID: String

    Permalink
  17. def clone(): AnyRef

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

    Permalink
  19. def countRowsRemovedDueToNullData(parameters: OperatorParameters): Boolean

    Permalink
  20. val dropIfExists: String

    Permalink
    Definition Classes
    OutputParameterUtils
  21. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def getBadDataPath(parameters: OperatorParameters): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def getDropIfExistsParameterValue(parameters: OperatorParameters): Boolean

    Permalink

    Gets the value of the dropIfExists parameter, returning true if the String value is "Yes", false if it is a different value or missing.

    Gets the value of the dropIfExists parameter, returning true if the String value is "Yes", false if it is a different value or missing.

    parameters

    OperatorParameters instance [containing the dropIfExists parameter].

    returns

    Boolean representation of the dropIfExists parameter.

    Definition Classes
    OutputParameterUtils
  27. def getHdfsCompressionType(parameters: OperatorParameters): HdfsCompressionType

    Permalink

    Get the Hdfs compression type from the parameters object.

    Get the Hdfs compression type from the parameters object.

    parameters

    This must contain the compression parameter. I.e., the user should've called addHdfsCompressionParameter or addHdfsStorageAndCompressionParameters before.

    returns

    The selected Hdfs compression type.

  28. def getHdfsStorageFormatType(parameters: OperatorParameters): HdfsStorageFormatType

    Permalink

    Get the Hdfs storage format from the parameters object.

    Get the Hdfs storage format from the parameters object.

    parameters

    This must contain the format parameter. I.e., the user should've called addHdfsStorageFormatParameter or addHdfsStorageAndCompressionParameters before.

    returns

    The selected Hdfs storage format.

  29. def getNullDataReportParameter(parameters: OperatorParameters): String

    Permalink
  30. def getNullDataStrategy(parameters: OperatorParameters, alternatePath: Option[String]): NullDataReportingStrategy

    Permalink
  31. def getOutputPath(parameters: OperatorParameters): String

    Permalink

    Concatenates the string values of parameters with keys "outputDirectory" and "outputName" with a file separator.

    Concatenates the string values of parameters with keys "outputDirectory" and "outputName" with a file separator.

    returns

    The output path corresponding to parameters outputDirectory and outputName.

  32. def getOverwriteParameterValue(parameters: OperatorParameters): Boolean

    Permalink

    Gets the value of the overwrite parameter, returning true if the String value is "true", false if it is a different value or missing.

    Gets the value of the overwrite parameter, returning true if the String value is "true", false if it is a different value or missing.

    parameters

    OperatorParameters instance [containing the overwrite parameter].

    returns

    Boolean representation of the overwrite parameter.

    Definition Classes
    OutputParameterUtils
  33. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  38. val operatorNameUUIDVariable: String

    Permalink
    Definition Classes
    OutputParameterUtils
  39. val outputDirectoryParameterID: String

    Permalink
  40. val outputNameParameterID: String

    Permalink
  41. val overwriteParameterID: String

    Permalink
    Definition Classes
    OutputParameterUtils
  42. val storageFormatParameterID: String

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

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

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

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

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

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

Deprecated Value Members

  1. val DEFAULT_NUMBER_ROWS: Int

    Permalink
    Annotations
    @deprecated
    Deprecated
  2. val badDataReportNROWS: String

    Permalink
    Annotations
    @deprecated
    Deprecated
  3. def getAmountOfBadDataToWrite(parameters: OperatorParameters): Option[Long]

    Permalink
    Annotations
    @deprecated
    Deprecated

    Use getNullDataStrategy

Inherited from OutputParameterUtils

Inherited from AnyRef

Inherited from Any

Ungrouped