"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/rapidminer/operator/ports/InputPortExtender.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.

InputPortExtender.java  (rapidminer-studio-9.4.1-src):InputPortExtender.java  (rapidminer-studio-9.5.0-src)
skipping to change at line 27 skipping to change at line 27
* If not, see http://www.gnu.org/licenses/. * If not, see http://www.gnu.org/licenses/.
*/ */
package com.rapidminer.operator.ports; package com.rapidminer.operator.ports;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import com.rapidminer.adaption.belt.AtPortConverter; import com.rapidminer.adaption.belt.AtPortConverter;
import com.rapidminer.belt.table.BeltConverter;
import com.rapidminer.gui.renderer.RendererService; import com.rapidminer.gui.renderer.RendererService;
import com.rapidminer.operator.IOObject; import com.rapidminer.operator.IOObject;
import com.rapidminer.operator.IOObjectCollection; import com.rapidminer.operator.IOObjectCollection;
import com.rapidminer.operator.UserError; import com.rapidminer.operator.UserError;
import com.rapidminer.operator.ports.metadata.CollectionMetaData; import com.rapidminer.operator.ports.metadata.CollectionMetaData;
import com.rapidminer.operator.ports.metadata.CollectionPrecondition; import com.rapidminer.operator.ports.metadata.CollectionPrecondition;
import com.rapidminer.operator.ports.metadata.CompatibilityLevel; import com.rapidminer.operator.ports.metadata.CompatibilityLevel;
import com.rapidminer.operator.ports.metadata.FlatteningPassThroughRule; import com.rapidminer.operator.ports.metadata.FlatteningPassThroughRule;
import com.rapidminer.operator.ports.metadata.InputMissingMetaDataError; import com.rapidminer.operator.ports.metadata.InputMissingMetaDataError;
import com.rapidminer.operator.ports.metadata.MDTransformationRule; import com.rapidminer.operator.ports.metadata.MDTransformationRule;
skipping to change at line 159 skipping to change at line 160
/** /**
* Adds the data to the results list if it is of the desired class or con vertible to it. Throws an user error * Adds the data to the results list if it is of the desired class or con vertible to it. Throws an user error
* otherwise. * otherwise.
*/ */
private <T extends IOObject> void addSingle(List<T> results, IOObject dat a, Class<T> desiredClass, Port port) private <T extends IOObject> void addSingle(List<T> results, IOObject dat a, Class<T> desiredClass, Port port)
throws UserError { throws UserError {
if (desiredClass.isInstance(data)) { if (desiredClass.isInstance(data)) {
results.add(desiredClass.cast(data)); results.add(desiredClass.cast(data));
} else if (AtPortConverter.isConvertible(data.getClass(), desired Class)) { } else if (AtPortConverter.isConvertible(data.getClass(), desired Class)) {
results.add(desiredClass.cast(AtPortConverter.convert(dat try {
a, port))); results.add(desiredClass.cast(AtPortConverter.con
vert(data, port)));
} catch (BeltConverter.ConversionException e) {
throw new UserError(getPorts().getOwner().getOper
ator(), "table_not_convertible.custom_column",
e.getColumnName(), e.getType().cu
stomTypeID());
}
} else { } else {
throw new UserError(getPorts().getOwner().getOperator(), 156, throw new UserError(getPorts().getOwner().getOperator(), 156,
RendererService.getName(data.getClass()), port.getName(), RendererService.getName(data.getClass()), port.getName(),
RendererService.getName(desiredClass)); RendererService.getName(desiredClass));
} }
} }
/** /**
* Returns a list of non-null meta data of all input ports. * Returns a list of non-null meta data of all input ports.
*/ */
 End of changes. 2 change blocks. 
2 lines changed or deleted 10 lines changed or added

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