String url = "jdbc:presto://localhost:8080/mydatabase?connectionTimeout=5000";
Connection conn = DriverManager.getConnection(url);
String url = "jdbc:presto://localhost:8080/mydatabase?batchSize=100";
Connection conn = DriverManager.getConnection(url);
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM mytable");
String sql = "SELECT * FROM mytable WHERE id = ?";
PreparedStatement pstmt = conn.prepareStatement(sql);
ResultSet rs = pstmt.executeQuery();