@@ -0,0 +1,1069 @@
+/**%0A * Sample file using the RiakClient#store(RiakObject, ...) API%0A */%0A%0Apackage com.trifork.riak_http;%0A%0Aimport java.io.IOException;%0A%0Aimport com.basho.riak.client.RiakClient;%0Aimport com.basho.riak.client.RiakObject;%0A%0Apublic class HTTPPushLotsOfData %7B%0A%0A%09%0A%09%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09%0A%09%09RiakClient riak = new RiakClient(%22http://127.0.0.1:8098/riak%22);%0A%09%09%0A%09%09long before = System.currentTimeMillis();%0A%09%09%0A%09%09%0A%09%09byte%5B%5D val = new byte%5B419%5D;%0A%09%09%0A%09%09%0A%09%09for (int i = 0; i %3C 100; i++) %7B%0A%09%09%09%0A%09%09%09long before2 = System.currentTimeMillis();%0A%0A%09%09%09String cpr = %22%22 + (1000000000+i);%0A%09%09%09String cpr_key = cpr;%0A%09%09%09%0A%09%09%09for (int rid = 0; rid %3C 1000; rid++)  %7B%0A%09%09%09%09%0A%09%09%09%09String rid_key = %22%22 + (200000+i);%0A%09%09%09%09%0A%09%09%09%09RiakObject ro = new RiakObject(riak, cpr_key, rid_key, val);%0A%09%09%09%09riak.store(ro);%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09long after2 = System.currentTimeMillis();%0A%09%09%09%0A%09%09%09System.out.println(%22%22+i+%22 x 1000 INSERTS: %22+(after2-before2)+%22ms%22);%0A%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09long after = System.currentTimeMillis();%0A%09%09%0A%09%09System.out.println(%22TOTAL TIME: %22+(1.0*(after-before)/1000.0)+%22s%22);%0A%09%7D%0A%09%0A%7D%0A

Test similar to push-lots-of-data but using the HTTP-based java client.