com.rapidminer.datatable
Class Example2DataTableRowWrapper

java.lang.Object
  extended by com.rapidminer.datatable.Example2DataTableRowWrapper
All Implemented Interfaces:
DataTableRow

public class Example2DataTableRowWrapper
extends java.lang.Object
implements DataTableRow

This class allows to use Examples as basis for DataTableRow.

Author:
Ingo Mierswa

Constructor Summary
Example2DataTableRowWrapper(Example example, java.util.List<Attribute> allAttributes, Attribute idAttribute)
          Creates a new wrapper.
 
Method Summary
 java.lang.String getId()
          Returns the Id of this table row.
 int getNumberOfValues()
          Returns the total number of values.
 double getValue(int index)
          Returns the i-th value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Example2DataTableRowWrapper

public Example2DataTableRowWrapper(Example example,
                                   java.util.List<Attribute> allAttributes,
                                   Attribute idAttribute)
Creates a new wrapper. If the Id Attribute is null, the DataTableRow will not contain an Id.

Method Detail

getId

public java.lang.String getId()
Description copied from interface: DataTableRow
Returns the Id of this table row.

Specified by:
getId in interface DataTableRow

getValue

public double getValue(int index)
Description copied from interface: DataTableRow
Returns the i-th value.

Specified by:
getValue in interface DataTableRow

getNumberOfValues

public int getNumberOfValues()
Description copied from interface: DataTableRow
Returns the total number of values.

Specified by:
getNumberOfValues in interface DataTableRow


Copyright © 2001-2009 by Rapid-I