code: private List onQuery(EntityMetadata m, Client client)
      {
          boolean useLuceneOrES = !MetadataUtils.useSecondryIndex(((ClientBase) client).getClientMetadata());
          QueryTranslator translator = new QueryTranslator();
          List<Map<String, Object>> columnsToOutput = translator.getColumnsToOutput(m, getKunderaQuery(), useLuceneOrES);
          translator.translate(getKunderaQuery(), m, useLuceneOrES);
          Filter filters = translator.getFilters();
          if (!translator.isWhereOrAggregationQuery() || !useLuceneOrES)
          {
              return ((HBaseClient) client).findData(m, null, translator.getStartRow(), translator.getEndRow(),
                      columnsToOutput, filters);
          }
          else
          {
              return populateUsingLucene(m, client, null, null);
          }
      }
docs: On query.
  
  @param m
  the m
  @param client
  the client
  @return the list