Spring for Apache Hadoop

org.springframework.yarn.annotation
Annotation Type YarnParameter


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface YarnParameter

Annotation which indicates that a method parameter should be bound to a parameter.

Author:
Janne Valkealahti

Optional Element Summary
 boolean required
          Whether the parameter is required.
 java.lang.String value
          The name of the parameter to bind to.
 

value

public abstract java.lang.String value
The name of the parameter to bind to.

Default:
""

required

public abstract boolean required
Whether the parameter is required.

Default is true, leading to an exception if the parameter is missing. Switch this to false if you prefer a null in case of the parameter missing.

Default:
true

Spring for Apache Hadoop