use of org.apache.tez.runtime.api.impl.EventMetaData in project hive by apache.
the class NotTezEventHelper method toTezEvent.
public static TezEvent toTezEvent(NotTezEvent nte) throws InvalidProtocolBufferException {
EventMetaData sourceMetaData = new EventMetaData(EventMetaData.EventProducerConsumerType.INPUT, nte.getVertexName(), "NULL_VERTEX", null);
EventMetaData destMetaData = new EventMetaData(EventMetaData.EventProducerConsumerType.INPUT, nte.getVertexName(), nte.getDestInputName(), null);
InputDataInformationEvent event = ProtoConverters.convertRootInputDataInformationEventFromProto(RootInputDataInformationEventProto.parseFrom(nte.getInputEventProtoBytes()));
TezEvent tezEvent = new TezEvent(event, sourceMetaData, System.currentTimeMillis());
tezEvent.setDestinationInfo(destMetaData);
return tezEvent;
}
Aggregations