org.apache.mahout.common.parameters
Interface Parameter<T>
- All Superinterfaces:
- Parametered
- All Known Implementing Classes:
- AbstractParameter, ClassParameter, DoubleParameter, PathParameter
public interface Parameter<T>
- extends Parametered
An accessor to a parameters in the job.
This is a composite entity that can it self contain more parameters. Say the parameters describes what
DistanceMeasure class to use, once set this parameters would also produce the parameters available in that
DistanceMeasure implementation.
Fields inherited from interface org.apache.mahout.common.parameters.Parametered |
log |
prefix
String prefix()
- Returns:
- job configuration setting key prefix, e.g. 'org.apache.mahout.util.WeightedDistanceMeasure.'
name
String name()
- Returns:
- configuration parameters name, e.g. 'weightsFile'
description
String description()
- Returns:
- human readable description of parameters
type
Class<T> type()
- Returns:
- value class type
setStringValue
void setStringValue(String stringValue)
- Parameters:
stringValue
- value string representation
getStringValue
String getStringValue()
- Returns:
- value string representation of current value
set
void set(T value)
- Parameters:
value
- new parameters value
get
T get()
- Returns:
- current parameters value
defaultValue
String defaultValue()
- Returns:
- value used if not set by consumer
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.