test/unit/org/apache/cassandra/CleanupHelper.java
/* usually used to populate the cache */
usually used to populate the cache
usually used to populate the cache
protected void readData(String keyspace, String columnFamily, int offset, int numberOfRows) throws IOException
    {
        ColumnFamilyStore store = Table.open(keyspace).getColumnFamilyStore(columnFamily);
        for (int i = offset; i < offset + numberOfRows; i++)
        {
            DecoratedKey key = Util.dk("key" + i);
            QueryPath path = new QueryPath(columnFamily, null, ByteBufferUtil.bytes("col" + i));
            store.getColumnFamily(key, path, ByteBufferUtil.EMPTY_BYTE_BUFFER, ByteBufferUtil.EMPTY_BYTE_BUFFER, false, 1);
        }
    }
protected void readData ( String keyspace , String columnFamily , int offset , int numberOfRows ) throws IOException { ColumnFamilyStore store = Table . open ( keyspace ) . getColumnFamilyStore ( columnFamily ) ; for ( int i = offset ; i < offset + numberOfRows ; i ++ ) { DecoratedKey key = Util . dk ( "key" + i ) ; QueryPath path = new QueryPath ( columnFamily , null , ByteBufferUtil . bytes ( "col" + i ) ) ; store . getColumnFamily ( key , path , ByteBufferUtil . EMPTY_BYTE_BUFFER , ByteBufferUtil . EMPTY_BYTE_BUFFER , false , 1 ) ; } }
usually used to populate the cache
usually used to populate the cache