Package org.apache.hadoop.chukwa.database

Examples of org.apache.hadoop.chukwa.database.Macro


      fail("SQL Exception: "+ExceptionUtil.getStackTrace(ex));
    }
    DatabaseWriter db = new DatabaseWriter(cluster);
    for(int i=0;i<tables.length;i++) {
      String query = "select [avg("+tables[i]+")] from ["+tables[i]+"]";
      Macro mp = new Macro(current,query);
      query = mp.toString();
      try {
        ResultSet rs = db.query(query);
        ResultSetMetaData rsmd = rs.getMetaData();
        int numberOfColumns = rsmd.getColumnCount();
        while(rs.next()) {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.database.Macro

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.