本文整理汇总了Java中com.rapidminer.operator.OperatorVersion类的典型用法代码示例。如果您正苦于以下问题:Java OperatorVersion类的具体用法?Java OperatorVersion怎么用?Java OperatorVersion使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OperatorVersion类属于com.rapidminer.operator包,在下文中一共展示了OperatorVersion类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ParameterTypeExpression
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
public ParameterTypeExpression(final String key, String description, final InputPort inPort, boolean optional) {
this(key, description, inPort, optional, new Callable<OperatorVersion>() {
@Override
public OperatorVersion call() throws Exception {
if (inPort != null) {
return inPort.getPorts().getOwner().getOperator().getCompatibilityLevel();
} else {
// callers that do not provide an input port are not be able to use the
// expression parser functions
return new OperatorVersion(1, 0, 0);
}
}
});
if (inPort == null) {
LogService.getRoot().log(Level.INFO, "com.rapidminer.parameter.ParameterTypeExpression.no_input_port_provided");
}
}
示例2: substituteMacros
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public String substituteMacros(String parameterValue, MacroHandler mh) throws UndefinedParameterError {
OperatorVersion version;
try {
version = operatorVersion.call();
} catch (Exception e) {
// cannot happen, throw error nevertheless
throw new UndefinedParameterError(getKey());
}
if (version != null && version.isAtMost(ExpressionParserBuilder.OLD_EXPRESSION_PARSER_FUNCTIONS)) {
// do not replace macros in case the compatibility level is at most 6.4
return super.substituteMacros(parameterValue, mh);
} else {
return parameterValue;
}
}
示例3: substitutePredefinedMacros
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public String substitutePredefinedMacros(String parameterValue, Operator operator) throws UndefinedParameterError {
OperatorVersion version;
try {
version = operatorVersion.call();
} catch (Exception e) {
// cannot happen, throw error nevertheless
throw new UndefinedParameterError(getKey());
}
if (version != null && version.isAtMost(ExpressionParserBuilder.OLD_EXPRESSION_PARSER_FUNCTIONS)) {
// do not replace macros in case the compatibility level is at most 6.4
return super.substitutePredefinedMacros(parameterValue, operator);
} else {
return parameterValue;
}
}
示例4: ParameterTypeExpression
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
public ParameterTypeExpression(final String key, String description, final InputPort inPort, boolean optional) {
this(key, description, inPort, optional, new Callable<OperatorVersion>() {
@Override
public OperatorVersion call() throws Exception {
if (inPort != null) {
return inPort.getPorts().getOwner().getOperator().getCompatibilityLevel();
} else {
// callers that do not provide an input port are not be able to use the
// expression parser functions
return new OperatorVersion(6, 4, 0);
}
}
});
if (inPort == null) {
LogService.getRoot().log(Level.INFO, "com.rapidminer.parameter.ParameterTypeExpression.no_input_port_provided");
}
}
示例5: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] incompatibleVersionChanges = super.getIncompatibleVersionChanges();
OperatorVersion[] newIncompatibleVersionChanges = new OperatorVersion[incompatibleVersionChanges.length + 1];
for (int i = 0; i < incompatibleVersionChanges.length; ++i) {
newIncompatibleVersionChanges[i] = incompatibleVersionChanges[i];
}
newIncompatibleVersionChanges[newIncompatibleVersionChanges.length - 1] = CHANGE_6_0_3_ERROR_HANDLING;
return newIncompatibleVersionChanges;
}
示例6: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] changes = super.getIncompatibleVersionChanges();
changes = Arrays.copyOf(changes, changes.length + 1);
changes[changes.length - 1] = CHANGE_6_4_0_ERROR_WHEN_DIRECTORY_NOT_EXISTS;
return changes;
}
示例7: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] old = super.getIncompatibleVersionChanges();
OperatorVersion[] updatedVersions = Arrays.copyOf(old, old.length + 1);
updatedVersions[updatedVersions.length - 1] = VERSION_BEFORE_HANDLING_EMPTY_ATTRIBUTE_SETS;
return updatedVersions;
}
示例8: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] incompatibleVersionChanges = super.getIncompatibleVersionChanges();
OperatorVersion[] newIncompatibleVersionChanges = new OperatorVersion[incompatibleVersionChanges.length + 1];
for (int i = 0; i < incompatibleVersionChanges.length; ++i) {
newIncompatibleVersionChanges[i] = incompatibleVersionChanges[i];
}
newIncompatibleVersionChanges[newIncompatibleVersionChanges.length - 1] = VERSION_DETERMINISTIC_RANDOM_NUMBERS;
return newIncompatibleVersionChanges;
}
示例9: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] changes = super.getIncompatibleVersionChanges();
changes = Arrays.copyOf(changes, changes.length + 1);
changes[changes.length - 1] = VERSION_6_4_0_USER_ERROR;
return changes;
}
示例10: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] incompatibleVersions = super.getIncompatibleVersionChanges();
OperatorVersion[] extendedIncompatibleVersions = Arrays.copyOf(incompatibleVersions,
incompatibleVersions.length + 1);
extendedIncompatibleVersions[incompatibleVersions.length] = ONLY_MAJORITY_VOTING;
return extendedIncompatibleVersions;
}
示例11: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] oldIncompatibleVersionChanges = super.getIncompatibleVersionChanges();
OperatorVersion[] newIncompatibleVersionChanges = new OperatorVersion[oldIncompatibleVersionChanges.length + 1];
for (int i = 0; i < oldIncompatibleVersionChanges.length; ++i) {
newIncompatibleVersionChanges[i] = oldIncompatibleVersionChanges[i];
}
newIncompatibleVersionChanges[newIncompatibleVersionChanges.length - 1] = VERSION_BEFORE_KEEPING_SPECIAL_ATT_WHEN_IT_LOSE_ROLE;
return newIncompatibleVersionChanges;
}
示例12: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] incompatibleVersions = super.getIncompatibleVersionChanges();
OperatorVersion[] extendedIncompatibleVersions = Arrays
.copyOf(incompatibleVersions, incompatibleVersions.length + 1);
extendedIncompatibleVersions[incompatibleVersions.length] = VERSION_IGNORE_ATTRIBUTES_OF_WRONG_TYPE;
return ExpressionParserUtils.addIncompatibleExpressionParserChange(extendedIncompatibleVersions);
}
示例13: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] changes = super.getIncompatibleVersionChanges();
changes = Arrays.copyOf(changes, changes.length + 1);
changes[changes.length - 1] = OPERATOR_VERSION_6_0_3;
return changes;
}
示例14: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] odlOne = super.getIncompatibleVersionChanges();
OperatorVersion[] newOne = Arrays.copyOf(odlOne, odlOne.length + 1);
newOne[odlOne.length] = FAIL_ON_MISSING_ATTRIBUTES;
return newOne;
}
示例15: getIncompatibleVersionChanges
import com.rapidminer.operator.OperatorVersion; //导入依赖的package包/类
@Override
public OperatorVersion[] getIncompatibleVersionChanges() {
OperatorVersion[] oldIncompatibleVersionChanges = super.getIncompatibleVersionChanges();
OperatorVersion[] newIncompatibleVersionChanges = new OperatorVersion[oldIncompatibleVersionChanges.length + 1];
for (int i = 0; i < oldIncompatibleVersionChanges.length; ++i) {
newIncompatibleVersionChanges[i] = oldIncompatibleVersionChanges[i];
}
newIncompatibleVersionChanges[newIncompatibleVersionChanges.length - 1] = VERSION_BEFORE_ROUND_ON_INTEGER_ATTRIBUTES;
return newIncompatibleVersionChanges;
}