Examples of run()


Examples of com.oltpbenchmark.benchmarks.twitter.procedures.GetTweetsFromFollowing.run()

    }

    public void doSelectTweetsFromPplIFollow(int uid) throws SQLException {
        GetTweetsFromFollowing proc = this.getProcedure(GetTweetsFromFollowing.class);
        assert (proc != null);
        proc.run(conn, uid);
    }

    public void doSelectNamesOfPplThatFollowMe(int uid) throws SQLException {
        GetFollowers proc = this.getProcedure(GetFollowers.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.twitter.procedures.GetUserTweets.run()

    }

    public void doSelectTweetsForUid(int uid) throws SQLException {
        GetUserTweets proc = this.getProcedure(GetUserTweets.class);
        assert (proc != null);
        proc.run(conn, uid).close();
    }

    public void doInsertTweet(int uid, String text) throws SQLException {
        InsertTweet proc = this.getProcedure(InsertTweet.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.twitter.procedures.InsertTweet.run()

    public void doInsertTweet(int uid, String text) throws SQLException {
        InsertTweet proc = this.getProcedure(InsertTweet.class);
        assert (proc != null);
        Time time = new Time(System.currentTimeMillis());
        try {
            proc.run(conn, uid, text, time);
        } catch (SQLException ex) {
            System.err.println("uid=" + uid);
            System.err.println("text=" + text);
            System.err.println("time=" + time);
            throw ex;
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.wikipedia.procedures.AddWatchList.run()

  }
 
  public void addToWatchlist(int userId, int nameSpace, String pageTitle) throws SQLException {
    AddWatchList proc = this.getProcedure(AddWatchList.class);
        assert (proc != null);
        proc.run(conn, userId, nameSpace, pageTitle);
  }

  public void removeFromWatchlist(int userId, int nameSpace, String pageTitle) throws SQLException {
    RemoveWatchList proc = this.getProcedure(RemoveWatchList.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.wikipedia.procedures.GetPageAnonymous.run()

   */
  public Article getPageAnonymous(boolean forSelect, String userIp,
                              int nameSpace, String pageTitle) throws SQLException {
    GetPageAnonymous proc = this.getProcedure(GetPageAnonymous.class);
        assert (proc != null);
        return proc.run(conn, forSelect, userIp, nameSpace, pageTitle);
  }

  public Article getPageAuthenticated(boolean forSelect, String userIp, int userId,
                                  int nameSpace, String pageTitle) throws SQLException {
    GetPageAuthenticated proc = this.getProcedure(GetPageAuthenticated.class);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.wikipedia.procedures.GetPageAuthenticated.run()

  public Article getPageAuthenticated(boolean forSelect, String userIp, int userId,
                                  int nameSpace, String pageTitle) throws SQLException {
    GetPageAuthenticated proc = this.getProcedure(GetPageAuthenticated.class);
        assert (proc != null);
        return proc.run(conn, forSelect, userIp, userId, nameSpace, pageTitle);
  }
 
  public void addToWatchlist(int userId, int nameSpace, String pageTitle) throws SQLException {
    AddWatchList proc = this.getProcedure(AddWatchList.class);
        assert (proc != null);
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.wikipedia.procedures.RemoveWatchList.run()

  }

  public void removeFromWatchlist(int userId, int nameSpace, String pageTitle) throws SQLException {
    RemoveWatchList proc = this.getProcedure(RemoveWatchList.class);
        assert (proc != null);
        proc.run(conn, userId, nameSpace, pageTitle);
  }

  public void updatePage(String userIp, int userId, int nameSpace, String pageTitle) throws SQLException {
    Article a = getPageAnonymous(false, userIp, nameSpace, pageTitle);
    conn.commit();
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.wikipedia.procedures.UpdatePage.run()

   
      if (LOG.isTraceEnabled())
          LOG.trace("UPDATING: Page: id:"+a.pageId+" ns:"+nameSpace +" title"+ pageTitle);
    UpdatePage proc = this.getProcedure(UpdatePage.class);
        assert (proc != null);
        proc.run(conn, a.textId, a.pageId, pageTitle, new String(newText),
                       nameSpace, userId, userIp, a.userText,
                       a.revisionId, revComment, revMinorEdit);
  }

}
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.ycsb.procedures.DeleteRecord.run()

    private void deleteRecord() throws SQLException {
        DeleteRecord proc = this.getProcedure(DeleteRecord.class);
        assert (proc != null);
        int keyname = readRecord.nextInt();
        proc.run(conn, keyname);
    }

    private Map<Integer, String> buildValues(int numVals) {
        this.m.clear();
        for (int i = 1; i <= numVals; i++) {
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.ycsb.procedures.InsertRecord.run()

        InsertRecord proc = this.getProcedure(InsertRecord.class);
        assert (proc != null);
        int keyname = insertRecord.nextInt();
        // System.out.println("[Thread " + this.id+"] insert this:  "+ keyname);
        Map<Integer, String> values = buildValues(10);
        proc.run(conn, keyname, values);
    }

    private void deleteRecord() throws SQLException {
        DeleteRecord proc = this.getProcedure(DeleteRecord.class);
        assert (proc != null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.