org.apache.hadoop.chukwa.util
Class DatabaseWriter
java.lang.Object
org.apache.hadoop.chukwa.util.DatabaseWriter
public class DatabaseWriter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseWriter
public DatabaseWriter(String host,
String user,
String password)
DatabaseWriter
public DatabaseWriter(String cluster)
execute
public void execute(String query)
getConnection
public Connection getConnection()
query
public ResultSet query(String query)
throws SQLException
- Throws:
SQLException
close
public void close()
formatTimeStamp
public static String formatTimeStamp(long timestamp)
Copyright © ${year} The Apache Software Foundation