org.android.activityminer.pmml.model.knn
Class Row

Package class diagram package Row
java.lang.Object
  extended by org.android.activityminer.pmml.model.knn.Row
All Implemented Interfaces:
TrainingData

public class Row
extends Object
implements TrainingData

The inline table row representation (without extensions)


Field Summary
private  Map<String,String> mapColumn2Value
          Column name to value map
 
Constructor Summary
Row()
           
 
Method Summary
 Map<String,String> getColumn2ValueMap()
          Getter for the mapping of column names to values
 String getColumnValue(String column)
          Getter for the string value of a column
 void setColumnValue(String column, String value)
          Setter for the string value of a column
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapColumn2Value

private final Map<String,String> mapColumn2Value
Column name to value map

Constructor Detail

Row

public Row()
Method Detail

getColumn2ValueMap

public final Map<String,String> getColumn2ValueMap()
Getter for the mapping of column names to values

Returns:
the mapping of column names to values

setColumnValue

public void setColumnValue(String column,
                           String value)
Setter for the string value of a column

Parameters:
column - the column name
value - the value

getColumnValue

public final String getColumnValue(String column)
Getter for the string value of a column

Parameters:
column - the column name
Returns:
the string value for the column name if valid, null otherwise