title: Query HBase table by key using RowFilter not working
body: <p>I have a HBase table (from java) and i want to query the table by list of keys. I did the following, but its not working. </p>
  
  <pre><code>mFilterFeatureIt = mFeatureSet.iterator();
  FilterList filterList=new FilterList(FilterList.Operator.MUST_PASS_ONE);
  
  while (mFilterFeatureIt.hasNext()) {
      long myfeatureId = mFilterFeatureIt.next();
  System.out.println("FeatureId:"+myfeatureId+" , ");
  RowFilter filter = new RowFilter(CompareOp.EQUAL,new BinaryComparator(Bytes.toBytes(myfeatureId)) );
  filterList.addFilter(filter);
  }
  
  outputMap  = HbaseUtils.getHbaseData("mytable", filterList);
  System.out.println("Size of outputMap map:"+ outputMap.szie());
  
  public static Map&lt;String, Map&lt;String, String&gt;&gt; getHbaseData(String table, FilterList filter) {
  
      Map&lt;String, Map&lt;String, String&gt;&gt; data = new HashMap&lt;String, Map&lt;String, String&gt;&gt;();
  HTable htable = null;
  try {
      htable = new HTable(HTableConfiguration.getHTableConfiguration(),table);
      Scan scan = new Scan();
      scan.setFilter(filter);
  
      ResultScanner resultScanner = htable.getScanner(scan);
      Iterator&lt;Result&gt; results = resultScanner.iterator();
  
      while (results.hasNext()) {
  
      Result result = results.next();
      String rowId = Bytes.toString(result.getRow());
      List&lt;KeyValue&gt; columns = result.list();
      if (null != columns) {
  
      HashMap&lt;String, String&gt; colData = new HashMap&lt;String, String&gt;();
      for (KeyValue column : columns) {
          colData.put(Bytes.toString(column.getFamily()) + ":"+ Bytes.toString(column.getQualifier()),Bytes.toString(column.getValue()));
      }
                  data.put(rowId, colData);
      }
  
      }
  
      } catch (IOException e) {
      e.printStackTrace();
      } finally {
          if (htable != null)
      try {
      htable.close();
      } catch (IOException e) {
      e.printStackTrace();
      }
      }
      return data;
  }
  </code></pre>
  
  <p>FeatureId:80515900 ,
  FeatureId:80515901 ,
  FeatureId:80515902 ,</p>
  
  <p>Size of outputMap map: 0 </p>
  
  <p>I see that value of feature id is what i want , but I always get the above output even if the key is present in the hbase table. Can anyone tell me what am i doing wrong ?</p>
  
  <p>EDIT:
  I posted the code for my hbase util method too above, so that you can point me to any bugs there. </p>
  
  <p>I am trying to do an SQL equivalent of <code>select * FROM mytable where featureId in (80515900, 80515901, 80515902)</code> My idea to achieve the same in HBase was to create a filter list with one filter for each featureId. Is that correct ?</p>
  
  <p>Here is the content of my table</p>
  
  <pre><code>scan 'mytable', {COLUMNS =&gt; ['sample:tag_count'] }
  
  80515900                                            column=sample:tag_count, timestamp=1339304052748, value=4                                                                                                
  80515901                                            column=sample:tag_count, timestamp=1339304052748, value=0                                                                                                
  80515902                                            column=sample:tag_count, timestamp=1339304052748, value=3       
  80515903                                            column=sample:tag_count, timestamp=1339304052748, value=1                                                                                                
  80515904                                            column=sample:tag_count, timestamp=1339304052748, value=2                                                                                                
  </code></pre>