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. val DEFAULT_NUMBER_ROWS: Int

  7. def addBadDataReportParameter(operatorDialog: OperatorDialog): DialogElement

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

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

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

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

    Definition Classes
    OutputParameterUtils
  12. 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.

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. val badDataLocation: String

  15. val badDataParameterOptions: Seq[String]

  16. val badDataReportALL: String

  17. val badDataReportNO: String

  18. val badDataReportNROWS: String

  19. val badDataReportParameterID: String

  20. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def getAmountOfBadDataToWrite(parameters: OperatorParameters): Option[Long]

  25. def getBadDataPath(parameters: OperatorParameters): String

  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. 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.

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

  29. 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
  30. 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.

  31. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  36. val operatorNameUUIDVariable: String

    Definition Classes
    OutputParameterUtils
  37. val outputDirectoryParameterID: String

  38. val outputNameParameterID: String

  39. val overwriteParameterID: String

    Definition Classes
    OutputParameterUtils
  40. val storageFormatParameterID: String

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

    Definition Classes
    AnyRef
  42. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OutputParameterUtils

Inherited from AnyRef

Inherited from Any

Ungrouped