public abstract class AbstractParameter<T> extends Object implements Parameter<T>
Parametered.ParameteredGeneralizations
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractParameter(Class<T> type,
String prefix,
String name,
org.apache.hadoop.conf.Configuration jobConf,
T defaultValue,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.conf.Configuration jobConf) |
void |
createParameters(String prefix,
org.apache.hadoop.conf.Configuration jobConf)
EXPERT: consumers should never have to call this method.
|
String |
defaultValue() |
String |
description() |
T |
get() |
Collection<Parameter<?>> |
getParameters() |
String |
getStringValue() |
String |
name() |
String |
prefix() |
void |
set(T value) |
String |
toString() |
Class<T> |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setStringValue
public void configure(org.apache.hadoop.conf.Configuration jobConf)
configure
in interface Parametered
public void createParameters(String prefix, org.apache.hadoop.conf.Configuration jobConf)
Parametered
Parametered.ParameteredGeneralizations
if java supported it. Calling this method should create a new list of
parameters and is calledcreateParameters
in interface Parametered
prefix
- ends with a dot if not empty.jobConf
- configuration used for retrieving valuesinvoking method
,
invoking method
public String getStringValue()
getStringValue
in interface Parameter<T>
public Collection<Parameter<?>> getParameters()
getParameters
in interface Parametered
public String prefix()
public String name()
public String description()
description
in interface Parameter<T>
public String defaultValue()
defaultValue
in interface Parameter<T>
public void set(T value)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.