"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/rapidminer/operator/IOContainer.java" between
rapidminer-studio-9.4.1-src.tar.gz and rapidminer-studio-9.5.0-src.tar.gz

About: RapidMiner Studio is a code-free environment for designing advanced analytic processes with machine learning, data mining, text mining, predictive analytics and business analytics. Java source.

IOContainer.java  (rapidminer-studio-9.4.1-src):IOContainer.java  (rapidminer-studio-9.5.0-src)
skipping to change at line 30 skipping to change at line 30
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import com.rapidminer.adaption.belt.IOTable; import com.rapidminer.adaption.belt.IOTable;
import com.rapidminer.belt.column.Column;
import com.rapidminer.belt.table.BeltConverter; import com.rapidminer.belt.table.BeltConverter;
import com.rapidminer.example.ExampleSet; import com.rapidminer.example.ExampleSet;
import com.rapidminer.tools.Tools; import com.rapidminer.tools.Tools;
/** /**
* Input for Operator.apply(). Instances of this class are containers for IOObje cts. They are * Input for Operator.apply(). Instances of this class are containers for IOObje cts. They are
* available by calling one of the <tt>getInput</tt> methods. The operator can c hoose between * available by calling one of the <tt>getInput</tt> methods. The operator can c hoose between
* keeping the IOObject in the container or delete it using it.<br> * keeping the IOObject in the container or delete it using it.<br>
* *
* From Version 5.0 on, IOContainers are only used for compatibility reasons and are only a * From Version 5.0 on, IOContainers are only used for compatibility reasons and are only a
skipping to change at line 191 skipping to change at line 192
} }
} }
} }
throw new MissingIOObjectException(cls); throw new MissingIOObjectException(cls);
} }
/** /**
* Check if the desired class is ExampleSet and the object an {@link IOTa ble} so that conversion is possible. * Check if the desired class is ExampleSet and the object an {@link IOTa ble} so that conversion is possible.
*/ */
private <T extends IOObject> boolean isToExampleSetConvertible(Class<T> c ls, IOObject object) { private <T extends IOObject> boolean isToExampleSetConvertible(Class<T> c ls, IOObject object) {
return object instanceof IOTable && cls.equals(ExampleSet.class); return object instanceof IOTable && cls.equals(ExampleSet.class)
//cannot convert custom columns
&& ((IOTable)object).getTable().select().ofTypeId
(Column.TypeId.CUSTOM).labels().isEmpty();
} }
/** /**
* Creates a new IOContainer by adding all IOObjects of this container to the given IOObject. * Creates a new IOContainer by adding all IOObjects of this container to the given IOObject.
*/ */
public IOContainer append(IOObject object) { public IOContainer append(IOObject object) {
return append(new IOObject[] { object }); return append(new IOObject[] { object });
} }
/** /**
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)