code: public Scan getResultScan(String tableName, String famName,
               ByteBuffer startKey, ByteBuffer endKey) throws IOException {
  	 logger.debug("AbstractHBaseUtils Begin of getResultScan(" + tableName + ", " + famName + ")");
           Scan scan = new Scan();
           scan.addFamily(Bytes.toBytes(famName));
           // For a range scan, set start / stop id or just start.
           if (startKey != null)
               scan.setStartRow(Bytes.toBytes(startKey));
           if (endKey != null)
               scan.setStopRow(Bytes.toBytes(endKey));
           return scan;
       }
docs: Creates a scan
  @param tableName to be scan
  @param famName to be checked
  @param startKey to query the table
  @param endKey to query the table
  @param conf
  @return Scan inside the table
  @throws IOException