__construct ( $config )

Constructs a new instance of this class.

Access

public

Parameters

Parameter

Type

Required

Description

$config

array

Required

An associative array representing the Hadoop step configuration.

Returns

Type

Description

$this

A reference to the current instance.

Source

Method defined in utilities/stepconfig.class.php | Toggle source view (10 lines) | View on GitHub

public function __construct($config)
{
    // Handle Hadoop jar arguments
    if (isset($config['HadoopJarStep']['Args']) && $args = $config['HadoopJarStep']['Args'])
    {
        $config['HadoopJarStep']['Args'] = is_array($args) ? $args : array($args);
    }

    $this->config = $config;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback