title: Get only certain amount of children from Firebase Database
body: <p>In my Android app I am using this code to retrieve posts from firebase database:</p>
  
  <pre><code>ArrayList&lt;Post&gt; posts = new ArrayList&lt;&gt;();
  dbRef.addValueEventListener(new ValueEventListener() {
              @Override
              public void onDataChange(DataSnapshot dataSnapshot) {
                  for(DataSnapshot dsp : dataSnapshot){
                     String author = dsp.child("author").getValue().toString();
                     String text = dsp.child("author").getValue().toString();
                      posts.add(new Post(author,text));
              }
                  @Override
                  public void onCancelled(DatabaseError databaseError) {
  
                  }
              });
  </code></pre>
  
  <p>But this returns all the posts and if there would be many of them I think it wouldn't be good idea to keep them all in memory. Is there a way to get only certain number of node's children? For example at the beginning I would like to get 10 first ones, then 10 more and so on</p>