code: @Override
      public Object[] findIdsByColumn(String schemaName, String tableName, String pKeyName, String columnName,
              Object columnValue, Class entityClazz)
      {
          List<Object> rowKeys = new ArrayList<Object>();
  
          if (getCqlVersion().equalsIgnoreCase(CassandraConstants.CQL_VERSION_3_0))
          {
              rowKeys = findIdsByColumnUsingCql(schemaName, tableName, pKeyName, columnName, columnValue, entityClazz);
          }
          else
          {
              Selector selector = clientFactory.getSelector(pool);
              SlicePredicate slicePredicate = Selector.newColumnsPredicateAll(false, 10000);
              EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);
  
              IndexClause ix = Selector.newIndexClause(Bytes.EMPTY, 10000, Selector.newIndexExpression(columnName
                      + Constants.JOIN_COLUMN_NAME_SEPARATOR + columnValue, IndexOperator.EQ,
                      Bytes.fromByteArray(PropertyAccessorHelper.getBytes(columnValue))));
  
              Map<Bytes, List<Column>> qResults = selector.getIndexedColumns(tableName, ix, slicePredicate,
                      getConsistencyLevel());
  
              // iterate through complete map and
              Iterator<Bytes> rowIter = qResults.keySet().iterator();
              while (rowIter.hasNext())
              {
                  Bytes rowKey = rowIter.next();
  
                  PropertyAccessor<?> accessor = PropertyAccessorFactory.getPropertyAccessor((Field) metadata
                          .getIdAttribute().getJavaMember());
                  Object value = accessor.fromBytes(metadata.getIdAttribute().getJavaType(), rowKey.toByteArray());
  
                  rowKeys.add(value);
              }
          }
          if (rowKeys != null && !rowKeys.isEmpty())
          {
              return rowKeys.toArray(new Object[0]);
          }
  
          if (log.isInfoEnabled())
          {
              log.info("No row keys found, returning null.");
          }
          return null;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#findIdsByColumn(java.lang.String,
  java.lang.String, java.lang.String, java.lang.String, java.lang.Object,
  java.lang.Class)