public abstract class AbstractParameter<T> extends Object implements Parameter<T>
Parametered.ParameteredGeneralizationslog| 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, waitsetStringValuepublic void configure(org.apache.hadoop.conf.Configuration jobConf)
configure in interface Parameteredpublic void createParameters(String prefix, org.apache.hadoop.conf.Configuration jobConf)
ParameteredParametered.ParameteredGeneralizations if java supported it. Calling this method should create a new list of
parameters and is calledcreateParameters in interface Parameteredprefix - ends with a dot if not empty.jobConf - configuration used for retrieving valuesinvoking method,
invoking methodpublic String getStringValue()
getStringValue in interface Parameter<T>public Collection<Parameter<?>> getParameters()
getParameters in interface Parameteredpublic 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.