Examples of toSummaryProtoStream()


Examples of org.apache.tez.dag.history.SummaryEvent.toSummaryProtoStream()

          outputStreamMap.put(dagID, outputStream);
        }

        if (outputStreamMap.containsKey(dagID)) {
          SummaryEvent summaryEvent = (SummaryEvent) event.getHistoryEvent();
          summaryEvent.toSummaryProtoStream(summaryStream);
        }
      }

      FSDataOutputStream outputStream = outputStreamMap.get(dagID);
      if (outputStream == null) {
View Full Code Here

Examples of org.apache.tez.dag.history.SummaryEvent.toSummaryProtoStream()

  private HistoryEvent testSummaryProtoConversion(HistoryEvent historyEvent)
      throws IOException {
    SummaryEvent event = (SummaryEvent) historyEvent;
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    HistoryEvent deserializedEvent = null;
    event.toSummaryProtoStream(os);
    os.flush();
    os.close();
    LOG.info("Serialized event to byte array"
        + ", eventType=" + historyEvent.getEventType()
        + ", bufLen=" + os.toByteArray().length);
View Full Code Here

Examples of org.apache.tez.dag.history.SummaryEvent.toSummaryProtoStream()

  private HistoryEvent testSummaryProtoConversion(HistoryEvent historyEvent)
      throws IOException {
    SummaryEvent event = (SummaryEvent) historyEvent;
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    HistoryEvent deserializedEvent = null;
    event.toSummaryProtoStream(os);
    os.flush();
    os.close();
    LOG.info("Serialized event to byte array"
        + ", eventType=" + historyEvent.getEventType()
        + ", bufLen=" + os.toByteArray().length);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.