title: Getting values with jedis pipeline
body: <p>I have a list of ids that I want to use to retrieve hashes from a Redis server using the java client jedis. As mentioned in the documentation, Jedis provides a way to use the pipeline by declaring Response objects and then sync the pipeline to get values:  </p>
  
  <pre><code>Pipeline p = jedis.pipelined();
  p.set("fool", "bar"); 
  p.zadd("foo", 1, "barowitch");  p.zadd("foo", 0, "barinsky"); p.zadd("foo", 0, "barikoviev");
  Response&lt;String&gt; pipeString = p.get("fool");
  Response&lt;Set&lt;String&gt;&gt; sose = p.zrange("foo", 0, -1);
  p.sync(); 
  </code></pre>
  
  <p>However, my list has a variable length that keeps changing every few minutes. Thus, I am not able to predict the number of Response objects that I need to declare. Is there a way to get around that, something like:</p>
  
  <pre><code>Pipeline p = jedis.pipelined();
  Response&lt;List&lt;List&lt;Map&lt;String,String&gt;&gt;&gt; records;
  for (int id: ids)
      records.add(p.hgetAll(id))
  p.sync();
  </code></pre>