Package org.eobjects.analyzer.util

Examples of org.eobjects.analyzer.util.SchemaNavigator


    // run a small job
    AnalyzerBeansConfiguration conf = new JaxbConfigurationReader().create(new File(DataCleanerHome.get(), "conf.xml"));
    final AnalysisJobBuilder ajb = new AnalysisJobBuilder(conf);
    Datastore ds = conf.getDatastoreCatalog().getDatastore("orderdb");
    DataContextProvider dcp = ds.getDataContextProvider();
    SchemaNavigator sn = dcp.getSchemaNavigator();
    ajb.setDatastore(ds);
    ajb.addSourceColumns(sn.convertToTable("PUBLIC.TRIAL_BALANCE").getColumns());
    ajb.addRowProcessingAnalyzer(ValueDistributionAnalyzer.class).addInputColumns(ajb.getSourceColumns());

    ajb.addSourceColumns(sn.convertToTable("PUBLIC.CUSTOMERS").getColumns());
    RowProcessingAnalyzerJobBuilder<ValueDistributionAnalyzer> groupedValueDist = ajb
        .addRowProcessingAnalyzer(ValueDistributionAnalyzer.class);
    groupedValueDist.addInputColumn(ajb.getSourceColumnByName("PUBLIC.CUSTOMERS.CITY"));
    groupedValueDist.setConfiguredProperty("Group column", ajb.getSourceColumnByName("PUBLIC.CUSTOMERS.COUNTRY"));
View Full Code Here


      Datastore datastore = _datastoreCatalog.getDatastore(datastoreName);
      if (datastore != null) {
        DataContextProvider dataContextProvider = datastore.getDataContextProvider();
        try {
          SchemaNavigator sn = dataContextProvider.getSchemaNavigator();

          Column masterTermColumn = sn.convertToColumn(synonymCatalog.getMasterTermColumnPath());
          _masterTermColumnComboBox.setSelectedItem(masterTermColumn);

          String[] synonymColumnPaths = synonymCatalog.getSynonymColumnPaths();
          Column[] synonymColumns = sn.convertToColumns(synonymColumnPaths);
          _synonymColumnsPanel.setColumns(Arrays.asList(synonymColumns));
        } finally {
          dataContextProvider.close();
        }
      }
View Full Code Here

TOP

Related Classes of org.eobjects.analyzer.util.SchemaNavigator

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.