title: how to query from realm database with distinct results java
body: <p>I have got a <code>Realm</code> object class, and storing lots of data in there, imagine that I have a  <code>String uid;</code>  field. I want to get uid names, but on same uid names just only one time, 
  For example</p>
  
  <h2>    uid</h2>
  
  <p>AA</p>
  
  <p>AA</p>
  
  <p>BB</p>
  
  <p>CC</p>
  
  <p>DD</p>
  
  <p>BB</p>
  
  <p>BB</p>
  
  <p>I want to get just
   AA,</p>
  
  <p>BB,</p>
  
  <p>CC, </p>
  
  <p>DD.</p>
  
  <p>Only one time.
  I looked over realm documentation but couldn't find anything.</p>
  
  <p>Thanks for answers.</p>