tools/stress/src/org/apache/cassandra/stress/util/Operation.java
/**
     * Generate values of average size specified by -S, up to cardinality specified by -C
     * @return Collection of the values
     */
Generate values of average size specified by -S, up to cardinality specified by -C
@return Collection of the values
Generate values of average size specified by - S up to cardinality specified by - C @return Collection of the values
protected List<ByteBuffer> generateRandomizedValues()
    {
        List<ByteBuffer> values = new ArrayList<ByteBuffer>();
        int limit = 2 * session.getColumnSize();
        for (int i = 0; i < session.getCardinality(); i++)
        {
            byte[] value = new byte[Stress.randomizer.nextInt(limit)];
            Stress.randomizer.nextBytes(value);
            values.add(ByteBuffer.wrap(value));
        }
        return values;
    }
protected List < ByteBuffer > generateRandomizedValues ( ) { List < ByteBuffer > values = new ArrayList < ByteBuffer > ( ) ; int limit = 2 * session . getColumnSize ( ) ; for ( int i = 0 ; i < session . getCardinality ( ) ; i ++ ) { byte [ ] value = new byte [ Stress . randomizer . nextInt ( limit ) ] ; Stress . randomizer . nextBytes ( value ) ; values . add ( ByteBuffer . wrap ( value ) ) ; } return values ; }
Generate values of average size specified by -S, up to cardinality specified by -C
 @return Collection of the values
Generate values of average size specified by - S up to cardinality specified by - C @return Collection of the values