Package com.taobao.tddl.interact.bean

Examples of com.taobao.tddl.interact.bean.TargetDB


  private List<TargetDB> buildTargetDbList(Map<String, Set<String>> topology) {
    List<TargetDB> targetDbList = new ArrayList<TargetDB>(topology.size());
   
    for (Map.Entry<String, Set<String>> e : topology.entrySet()) {
      TargetDB db = new TargetDB();
      Map<String, Field> tableNames = new HashMap<String, Field>(e.getValue().size());
      for (String tbName : e.getValue()) {
        tableNames.put(tbName, null);
      }
      db.setDbIndex(e.getKey());
      db.setTableNames(tableNames);
      targetDbList.add(db);
    }
    return targetDbList;
  }
View Full Code Here


  }

  private List<TargetDB> buildTargetDbListWithSourceKey(Map<String, Map<String, Field>> topology) {
    List<TargetDB> targetDbList = new ArrayList<TargetDB>(topology.size());
    for (Map.Entry<String, Map<String, Field>> e : topology.entrySet()) {
      TargetDB db = new TargetDB();
      db.setDbIndex(e.getKey());
      db.setTableNames(e.getValue());
      targetDbList.add(db);
    }
    return targetDbList;
  }
View Full Code Here

TOP

Related Classes of com.taobao.tddl.interact.bean.TargetDB

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.