code: @Override
      public List findByRange(byte[] minVal, byte[] maxVal, EntityMetadata m, boolean isWrapReq, List<String> relations,
              List<String> columns, List<IndexExpression> conditions, int maxResults) throws Exception
      {
          SlicePredicate slicePredicate = new SlicePredicate();
  
          if (columns != null && !columns.isEmpty())
          {
              List asList = new ArrayList(32);
              for (String colName : columns)
              {
                  if (colName != null)
                  {
                      asList.add(UTF8Type.instance.decompose(colName));
                  }
              }
              slicePredicate.setColumn_names(asList);
          }
          else
          {
              SliceRange sliceRange = new SliceRange();
              sliceRange.setStart(ByteBufferUtil.EMPTY_BYTE_BUFFER);
              sliceRange.setFinish(ByteBufferUtil.EMPTY_BYTE_BUFFER);
              slicePredicate.setSlice_range(sliceRange);
          }
  
          KeyRange keyRange = new KeyRange(maxResults);
          keyRange.setStart_key(minVal == null ? "".getBytes() : minVal);
          keyRange.setEnd_key(maxVal == null ? "".getBytes() : maxVal);
          ColumnParent cp = new ColumnParent(m.getTableName());
  
          if (conditions != null && !conditions.isEmpty())
          {
              keyRange.setRow_filter(conditions);
              keyRange.setRow_filterIsSet(true);
          }
  
          Connection conn = getConnection();
  
          List<KeySlice> keys = conn.getClient().get_range_slices(cp, slicePredicate, keyRange, getConsistencyLevel());
  
          releaseConnection(conn);
  
          List results = null;
          if (keys != null)
          {
              results = populateEntitiesFromKeySlices(m, isWrapReq, relations, keys, dataHandler);
          }
          return results;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.client.cassandra.CassandraClientBase#findByRange(byte[],
  byte[], com.impetus.kundera.metadata.model.EntityMetadata, boolean,
  java.util.List, java.util.List, java.util.List, int)