Package org.apache.hadoop.thriftfs.api

Examples of org.apache.hadoop.thriftfs.api.MetricsRecord


    for (Map.Entry<String, Collection<OutputRecord>> entry :
           ctx.getAllRecords().entrySet()) {

      ArrayList<MetricsRecord> recs = new ArrayList<MetricsRecord>();
      for (OutputRecord outputRec : entry.getValue()) {
        MetricsRecord tRec = metricsRecordToThrift(outputRec);
        recs.add(tRec);
      }

      tCtx.records.put(entry.getKey(), recs);
    }
View Full Code Here


    return tCtx;
  }

  private MetricsRecord metricsRecordToThrift(OutputRecord outputRec) {
    MetricsRecord tRec = new MetricsRecord();

    // Thriftify tags
    tRec.tags = new HashMap<String, String>();
    for (Map.Entry<String, Object> tag : outputRec.getTagsCopy().entrySet()) {
      tRec.tags.put(tag.getKey(), String.valueOf(tag.getValue()));
View Full Code Here

TOP

Related Classes of org.apache.hadoop.thriftfs.api.MetricsRecord

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.