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

    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
  8. def addHdfsStorageFormatParameter(operatorDialog: OperatorDialog, defaultFormat: HdfsStorageFormatType): 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 '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

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

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

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

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

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. val badDataLocation: String

  16. val badDataParameterOptions: Seq[String]

  17. val badDataReportALL: String

  18. val badDataReportNO: String

  19. val badDataReportNO_COUNT: String

  20. val badDataReportNROWS: String

  21. val badDataReportParameterID: String

  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def countRowsRemovedDueToNullData(parameters: OperatorParameters): Boolean

  24. val dropIfExists: String

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

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

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

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

  29. def getBadDataPath(parameters: OperatorParameters): String

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

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

    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
  32. def getHdfsStorageFormatType(parameters: OperatorParameters): HdfsStorageFormatType

    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.

  33. def getNullDataReportParameter(parameters: OperatorParameters): String

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

  35. 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
  36. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  41. val operatorNameUUIDVariable: String

    Definition Classes
    OutputParameterUtils
  42. val outputDirectoryParameterID: String

  43. val outputNameParameterID: String

  44. val overwriteParameterID: String

    Definition Classes
    OutputParameterUtils
  45. val storageFormatParameterID: String

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

    Definition Classes
    AnyRef
  47. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def addBadDataReportParameter(operatorDialog: OperatorDialog): DialogElement

    Annotations
    @deprecated
    Deprecated

    Use addNullDataReportParameter

  2. def addHdfsStorageFormatParameter(operatorDialog: OperatorDialog, defaultFormat: HdfsStorageFormat.HdfsStorageFormat = HdfsStorageFormat.TSV): DialogElement

    Annotations
    @deprecated
    Deprecated

    Use method which takes HdfsStorageFormatType case class rather than HdfsStorageFormat enum

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

    Annotations
    @deprecated
    Deprecated

    Use method which returns HdfsStorageFormatType case class rather than HdfsStorageFormat enum

  4. def getTabularFormatAttributes(storageFormat: HdfsStorageFormatType): TabularFormatAttributes

    Get default tabular format attributes to use (e.

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

    storageFormat

    The HdfsStorageFormatType.

    returns

    Tabular format attributes.

    Annotations
    @deprecated
    Deprecated

    Use the TabularSchema definition without TabularFormatAttributes, and then you will not need this method.

  5. 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/CSV). This is useful if one wants to define output formats using default values.

    storageFormat

    The HdfsStorageFormatType

    returns

    Tabular format attributes.

    Annotations
    @deprecated
    Deprecated

    Use method which takes HdfsStorageFormatType object rather than HdfsStorageFormat enum

Inherited from OutputParameterUtils

Inherited from AnyRef

Inherited from Any

Ungrouped