code: public static void setInputRange(Configuration conf, String startToken, String endToken, List<IndexExpression> filter)
      {
          KeyRange range = new KeyRange().setStart_token(startToken).setEnd_token(endToken).setRow_filter(filter);
          conf.set(INPUT_KEYRANGE_CONFIG, thriftToString(range));
      }
docs: Set the KeyRange to limit the rows.
  @param conf Job configuration you are about to run