com.alpine.plugin.core.utils

HdfsParameterUtils

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addHdfsStorageFormatParameter(operatorDialog: OperatorDialog, defaultFormat: HdfsStorageFormat.HdfsStorageFormat = HdfsStorageFormat.TSV): DialogElement

    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 'TSV', '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.

  7. def addOutputDirectorySelector(operatorDialog: OperatorDialog): DialogElement

    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.

    returns

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

    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.

    returns

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

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

    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.

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  17. def getHdfsStorageFormat(parameters: OperatorParameters): HdfsStorageFormat.HdfsStorageFormat

    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 before.

    returns

    The selected Hdfs storage format.

  18. def getOutputPath(parameters: OperatorParameters): String

    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.

  19. def getOverwriteParameterValue(parameters: OperatorParameters): Boolean

    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
  20. def getTabularFormatAttributes(storageFormat: HdfsStorageFormat.HdfsStorageFormat): TabularFormatAttributes

    Get default tabular format attributes to use (e.

    Get default tabular format attributes to use (e.g., delimiter, quote information for CSV/TSV). This is useful if one wants to define output formats using default values.

    storageFormat

    The Hdfs storage format.

    returns

    Tabular format attributes.

  21. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. val operatorNameUUIDVariable: String

    Definition Classes
    OutputParameterUtils
  27. val outputDirectoryParameterID: String

  28. val outputNameParameterID: String

  29. val overwriteParameterID: String

    Definition Classes
    OutputParameterUtils
  30. val storageFormatParameterID: String

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OutputParameterUtils

Inherited from AnyRef

Inherited from Any

Ungrouped