code: public List handleFindByRange(EntityMetadata m, Client client, List result,
              Map<Boolean, List<IndexClause>> ixClause, boolean isRowKeyQuery, List<String> columns, int maxResults)
      {
          List<IndexExpression> expressions = ixClause.get(isRowKeyQuery).get(0).getExpressions();
  
          if (expressions == null)
          {
              return null;
          }
  
          Map<String, byte[]> rowKeys = getRowKeyValue(expressions,
                  ((AbstractAttribute) m.getIdAttribute()).getJPAColumnName());
  
          byte[] minValue = rowKeys.get(MIN_);
          byte[] maxVal = rowKeys.get(MAX_);
  
          try
          {
              result = ((CassandraClientBase) client).findByRange(minValue, maxVal, m, m.getRelationNames() != null
                      && !m.getRelationNames().isEmpty(), m.getRelationNames(), columns, expressions, maxResults);
          }
          catch (Exception e)
          {
              log.error("Error while executing find by range, Caused by: ", e);
              throw new QueryHandlerException(e);
          }
          return result;
      }
docs: Handle find by range.
  
  @param m            the m
  @param client            the client
  @param result            the result
  @param ixClause            the ix clause
  @param isRowKeyQuery            the is row key query
  @param columns the columns
  @param maxResults the max results
  @return the list