Package edu.brown.benchmark.auctionmark.util

Examples of edu.brown.benchmark.auctionmark.util.GlobalAttributeValueId


                this.gag_current = this.gag_iterator.next();
                assert(this.gag_current != null);
                this.gav_counter = 0;
            }

            GlobalAttributeValueId gav_id = new GlobalAttributeValueId(this.gag_current.encode(),
                                                                     this.gav_counter);
           
            // GAV_ID
            this.row[col++] = gav_id.encode();
            // GAV_GAG_ID
            this.row[col++] = this.gag_current.encode();
            // GAV_NAME
            this.row[col++] = profile.rng.astring(6, 32);
           
View Full Code Here


            return itemInfo.numAttributes;
        }
        @Override
        protected int populateRow(LoaderItemInfo itemInfo, short remaining) {
            int col = 0;
            GlobalAttributeValueId gav_id = profile.getRandomGlobalAttributeValue();
            assert(gav_id != null);
           
            // IA_ID
            this.row[col++] = this.count;
            // IA_I_ID
            this.row[col++] = itemInfo.itemId;
            // IA_U_ID
            this.row[col++] = itemInfo.sellerId;
            // IA_GAV_ID
            this.row[col++] = gav_id.encode();
            // IA_GAG_ID
            this.row[col++] = gav_id.getGlobalAttributeGroup().encode();

            return (col);
        }
View Full Code Here

    public synchronized GlobalAttributeValueId getRandomGlobalAttributeValue() {
        int offset = rng.nextInt(this.gag_ids.size());
        GlobalAttributeGroupId gag_id = this.gag_ids.get(offset);
        assert(gag_id != null);
        int count = rng.nextInt(gag_id.getCount());
        GlobalAttributeValueId gav_id = new GlobalAttributeValueId(gag_id, count);
        return gav_id;
    }
View Full Code Here

TOP

Related Classes of edu.brown.benchmark.auctionmark.util.GlobalAttributeValueId

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.