Package org.eobjects.datacleaner.output

Examples of org.eobjects.datacleaner.output.OutputWriter


    Thread[] threads = new Thread[9];
    for (int i = 0; i < threads.length; i++) {
      threads[i] = new Thread() {
        public void run() {
          try {
            OutputWriter writer = DatastoreOutputWriterFactory.getWriter(outputDir, creationDelegate, "ds",
                "tab", false, columns);
            scenarioHelper.writeExampleData(writer);
          } catch (Exception e) {
            _exception = e;
          }
View Full Code Here


        scenarioHelper.performAssertions(dataSet, true);

        dcp.close();
      }
    };
    OutputWriter writer = DatastoreOutputWriterFactory.getWriter(outputDir, creationDelegate, "my datastore", "dataset",
        scenarioHelper.getColumns().toArray(new InputColumn[0]));

    scenarioHelper.writeExampleData(writer);

    assertTrue(_datastoreCreated);
View Full Code Here

    JMenuItem saveAsDatastoreItem = new JMenuItem("As datastore");
    saveAsDatastoreItem.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        String datastoreName = JOptionPane.showInputDialog("Datastore name");
        OutputWriter writer = DatastoreOutputWriterFactory.getWriter(datastoreName, "DATASET", _inputColumns);
        performWrite(writer);

        UsageLogger.getInstance().log("Save DataSet as datastore");
      }
    });

    JMenuItem saveAsCsvItem = new JMenuItem("As CSV file");
    saveAsCsvItem.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        DCFileChooser fileChooser = new DCFileChooser(_userPreferences.getAnalysisJobDirectory());
        fileChooser.addChoosableFileFilter(FileFilters.CSV);
        if (fileChooser.showSaveDialog((Component) event.getSource()) == JFileChooser.APPROVE_OPTION) {
          File selectedFile = fileChooser.getSelectedFile();
          if (selectedFile.getName().indexOf('.') == -1) {
            selectedFile = new File(selectedFile.getPath() + ".csv");
          }

          OutputWriter writer = CsvOutputWriterFactory.getWriter(selectedFile.getAbsolutePath(), _inputColumns);
          performWrite(writer);

          File dir = selectedFile.getParentFile();
          _userPreferences.setAnalysisJobDirectory(dir);
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.output.OutputWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.