private static void parseLine(String line, Listener l) throws IOException {
   Map<String, String> parseBuffer = new HashMap<String, String>();
   
   // extract the record type
   int idx = line.indexOf(' ');
   String recType = line.substring(0, idx);
   String data = line.substring(idx + 1, line.length());

   Matcher matcher = pattern.matcher(data);

   while (matcher.find()) {
     String tuple = matcher.group(0);
     String[] parts = tuple.split("=");

     parseBuffer.put(parts[0], parts[1].substring(1, parts[1].length() - 1));
   }

   l.handle(RecordTypes.valueOf(recType), parseBuffer);
 }
Parse a single line of history.

@param line
@param l
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistoryUtil.java