Package edu.brown.hstore.txns

Examples of edu.brown.hstore.txns.QueryInvocation


     * @param stmtParams
     * @return
     */
    public int addQuery(Statement stmt, PartitionSet partitions, ParameterSet stmtParams) {
        int counter = (int)this.stmtCounters.put(stmt) - 1;
        QueryInvocation pq = new QueryInvocation(stmt, counter, partitions, stmtParams.hashCode());
        this.invocations.add(pq);
        return (counter);
    }
View Full Code Here


   
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        for (int i = 0, cnt = this.invocations.size(); i < cnt; i++) {
            QueryInvocation qi = this.invocations.get(i);
            sb.append(String.format("[%02d] %s - #02d / partitions=%s / params=%d\n",
                      i, qi.stmt.fullName(), qi.counter, qi.partitions, qi.paramsHash));
        } // FOR
        return (sb.toString());
    }
View Full Code Here

TOP

Related Classes of edu.brown.hstore.txns.QueryInvocation

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.