本文整理汇总了Java中com.rapidminer.operator.io.AbstractDataReader类的典型用法代码示例。如果您正苦于以下问题:Java AbstractDataReader类的具体用法?Java AbstractDataReader怎么用?Java AbstractDataReader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractDataReader类属于com.rapidminer.operator.io包,在下文中一共展示了AbstractDataReader类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: actionPerformed
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
new ProgressThread("guessing_value_types") {
@Override
public void run() {
final List<Object[]> previewAsList;
try {
abortGuessingButton.setEnabled(true);
guessValueTypesButton.setEnabled(false);
reader.stopReading();
synchronized (reader) {
reader.guessValueTypes(getProgressListener());
previewAsList = reader.getPreviewAsList(getProgressListener(), true, false,
AbstractDataReader.PREVIEW_LINES);
}
} catch (OperatorException e1) {
// TODO fix this
SwingTools.showVerySimpleErrorMessage(e1.getMessage(), e1);
return;
}
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
setData(previewAsList);
guessValueTypesButton.setEnabled(true);
abortGuessingButton.setEnabled(false);
};
});
}
}.start();
}
示例2: loggedActionPerformed
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
@Override
public void loggedActionPerformed(ActionEvent e) {
new ProgressThread("guessing_value_types") {
@Override
public void run() {
final List<Object[]> previewAsList;
try {
abortGuessingButton.setEnabled(true);
guessValueTypesButton.setEnabled(false);
reader.stopReading();
synchronized (reader) {
reader.guessValueTypes(getProgressListener());
previewAsList = reader.getPreviewAsList(getProgressListener(), true, false,
AbstractDataReader.PREVIEW_LINES);
}
} catch (OperatorException e1) {
// TODO fix this
SwingTools.showVerySimpleErrorMessage(e1.getMessage(), e1);
return;
}
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
setData(previewAsList);
guessValueTypesButton.setEnabled(true);
abortGuessingButton.setEnabled(false);
};
});
}
}.start();
}
示例3: actionPerformed
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
new ProgressThread("guessing_value_types") {
@Override
public void run() {
final List<Object[]> previewAsList;
try {
abortGuessingButton.setEnabled(true);
guessValueTypesButton.setEnabled(false);
reader.stopReading();
synchronized (reader) {
reader.guessValueTypes(getProgressListener());
previewAsList = reader.getPreviewAsList(getProgressListener(), true, false, AbstractDataReader.PREVIEW_LINES);
}
} catch (OperatorException e1) {
// TODO fix this
SwingTools.showVerySimpleErrorMessage(e1.getMessage(), e1);
return;
}
SwingUtilities.invokeLater(new Runnable() {
public void run() {
setData(previewAsList);
guessValueTypesButton.setEnabled(true);
abortGuessingButton.setEnabled(false);
};
});
}
}.start();
}
示例4: RoleSelectionCellEditor
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
public RoleSelectionCellEditor() {
super(new JComboBox(AbstractDataReader.ROLE_NAMES.toArray()));
}
示例5: MetaDataDeclerationWizardStep
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
public MetaDataDeclerationWizardStep(String key, AbstractDataReader reader) {
super(key);
editor = new MetaDataDeclarationEditor(reader, true);
this.reader = reader;
}
示例6: RoleSelectionCellEditor
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
public RoleSelectionCellEditor() {
super(new JComboBox<>(AbstractDataReader.ROLE_NAMES.toArray()));
}
示例7: ParseValueTypesWizardStep
import com.rapidminer.operator.io.AbstractDataReader; //导入依赖的package包/类
public ParseValueTypesWizardStep(String key, AbstractDataReader reader) {
super(key, reader);
// a different text for the CSV version
super.tolerateErrorCheckBox.setText("Read non matching values as missings and tolerate too short rows.");
}