Package org.apache.hadoop.yarn.server.applicationhistoryservice.timeline

Examples of org.apache.hadoop.yarn.server.applicationhistoryservice.timeline.NameValuePair


    if (str == null) {
      return null;
    }
    String[] strs = str.split(delimiter, 2);
    try {
      return new NameValuePair(strs[0].trim(),
          GenericObjectMapper.OBJECT_READER.readValue(strs[1].trim()));
    } catch (Exception e) {
      // didn't work as an Object, keep it as a String
      return new NameValuePair(strs[0].trim(), strs[1].trim());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.server.applicationhistoryservice.timeline.NameValuePair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.