Map<Number160, Data> contentMap = new HashMap<Number160, Data>();
System.out.println("first we store 1000 items from 0-999 under key " + nr1);
for (int i = 0; i < nrPeers; i++) {
contentMap.put(new Number160(i), new Data("data " + i));
}
FuturePut futurePut = peers[peer30].put(nr1).dataMapContent(contentMap)
.domainKey(Number160.createHash("my_domain")).start();
futurePut.awaitUninterruptibly();
// store another one
Number160 nr2 = new Number160(RND);
contentMap = new HashMap<Number160, Data>();
System.out.println("then we store 1000 items from 800-1799 under key " + nr2);
for (int i = range1; i < range2; i++) {
contentMap.put(new Number160(i), new Data("data " + i));
}
futurePut = peers[peer60].put(nr2).dataMapContent(contentMap).domainKey(Number160.createHash("my_domain"))
.start();
futurePut.awaitUninterruptibly();
// digest the first entry
FutureDigest futureDigest = peers[peer20].digest(nr1).all().returnBloomFilter()
.domainKey(Number160.createHash("my_domain")).start();
futureDigest.awaitUninterruptibly();
// we have the bloom filter for the content keys: