ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From visagan <visagan1...@gmail.com>
Subject Re: Loading cache with DataStreamer
Date Sat, 04 Jun 2016 17:37:52 GMT
 You should probably do this:      
       IgniteDataStreamer<String, ProductDetails> streamer =
ignite.dataStreamer(cacheName); 
       for (long i=1; i<= 100000; i++) { 
            ProductDetails phone = new ProductDetails("phone" + i); 
            //set other properties 
            streamer.addData(phone.getName(), phone); 
        } 



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Loading-cache-with-DataStreamer-tp5421p5422.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message