Package com.oltpbenchmark.benchmarks.epinions.procedures

Examples of com.oltpbenchmark.benchmarks.epinions.procedures.UpdateTrustRating


        int rating = rand.nextInt(1000); // ???
        proc.run(conn, iid, uid, rating);
    }

    public void updateTrustRating() throws SQLException {
        UpdateTrustRating proc = this.getProcedure(UpdateTrustRating.class);
        int uix= rand.nextInt(user_ids.size());
        int uix2= rand.nextInt(user_ids.size());
        long uid = Long.valueOf(user_ids.get(uix));
        long uid2 = Long.valueOf(user_ids.get(uix2));
        int trust = rand.nextInt(2);
        proc.run(conn, uid, uid2, trust);
    }
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.benchmarks.epinions.procedures.UpdateTrustRating

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.