tools/stress/src/org/apache/cassandra/stress/util/Operation.java
/**
     * Gauss key generator
     * @return byte[] representation of the key string
     */
Gauss key generator
@return byte[] representation of the key string
Gauss key generator @return byte [] representation of the key string
private byte[] generateGaussKey()
    {
        String format = "%0" + session.getTotalKeysLength() + "d";
        for (;;)
        {
            double token = nextGaussian(session.getMean(), session.getSigma());
            if (0 <= token && token < session.getNumDifferentKeys())
            {
                return String.format(format, (int) token).getBytes(UTF_8);
            }
        }
    }
private byte [ ] generateGaussKey ( ) { String format = "%0" + session . getTotalKeysLength ( ) + "d" ; for ( ; ; ) { double token = nextGaussian ( session . getMean ( ) , session . getSigma ( ) ) ; if ( 0 <= token && token < session . getNumDifferentKeys ( ) ) { return String . format ( format , ( int ) token ) . getBytes ( UTF_8 ) ; } } }
Gauss key generator
 @return byte[] representation of the key string
Gauss key generator @return byte [] representation of the key string