本文整理汇总了Java中org.dmg.pmml.OutputField.getResultFeature方法的典型用法代码示例。如果您正苦于以下问题:Java OutputField.getResultFeature方法的具体用法?Java OutputField.getResultFeature怎么用?Java OutputField.getResultFeature使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.dmg.pmml.OutputField
的用法示例。
在下文中一共展示了OutputField.getResultFeature方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.dmg.pmml.OutputField; //导入方法依赖的package包/类
@Override
public VisitorAction visit(OutputField outputField){
ResultFeature resultFeature = outputField.getResultFeature();
switch(resultFeature){
case TRANSFORMED_VALUE:
case DECISION:
{
String segmentId = outputField.getSegmentId();
if(segmentId != null){
outputField.setValue(filter(outputField.getValue()));
}
}
break;
default:
break;
}
return super.visit(outputField);
}
示例2: visit
import org.dmg.pmml.OutputField; //导入方法依赖的package包/类
@Override
public VisitorAction visit(OutputField outputField){
ResultFeature resultFeature = outputField.getResultFeature();
switch(resultFeature){
case STANDARD_ERROR:
report(new UnsupportedAttributeException(outputField, resultFeature));
break;
default:
break;
}
return super.visit(outputField);
}