Tabnine Logo
EventProtos$RootInputDataInformationEventProto
Code IndexAdd Tabnine to your IDE (free)

How to use
EventProtos$RootInputDataInformationEventProto
in
org.apache.tez.runtime.api.events

Best Java code snippets using org.apache.tez.runtime.api.events.EventProtos$RootInputDataInformationEventProto (Showing top 18 results out of 315)

origin: apache/hive

 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;
 }
}
origin: org.apache.tez/tez-runtime-internals

case ROOT_INPUT_DATA_INFORMATION_EVENT:
 RootInputDataInformationEventProto difProto = RootInputDataInformationEventProto
   .parseFrom(input);
 event = ProtoConverters.convertRootInputDataInformationEventFromProto(difProto);
 break;
origin: org.apache.tez/tez-dag

if (hasRootInputDataInformationEvent()) {
 result = result && getRootInputDataInformationEvent()
   .equals(other.getRootInputDataInformationEvent());
origin: org.apache.tez/tez-dag

 rootInputDataInformationEvent_ = org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance();
} else {
 rootInputDataInformationEventBuilder_.clear();
origin: org.apache.tez/tez-api

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto)) {
  return super.equals(obj);
 }
 org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other = (org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto) obj;
 boolean result = true;
 result = result && (hasSourceIndex() == other.hasSourceIndex());
 if (hasSourceIndex()) {
  result = result && (getSourceIndex()
    == other.getSourceIndex());
 }
 result = result && (hasTargetIndex() == other.hasTargetIndex());
 if (hasTargetIndex()) {
  result = result && (getTargetIndex()
    == other.getTargetIndex());
 }
 result = result && (hasUserPayload() == other.hasUserPayload());
 if (hasUserPayload()) {
  result = result && getUserPayload()
    .equals(other.getUserPayload());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: org.apache.tez/tez-api

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasSourceIndex()) {
  hash = (37 * hash) + SOURCE_INDEX_FIELD_NUMBER;
  hash = (53 * hash) + getSourceIndex();
 }
 if (hasTargetIndex()) {
  hash = (37 * hash) + TARGET_INDEX_FIELD_NUMBER;
  hash = (53 * hash) + getTargetIndex();
 }
 if (hasUserPayload()) {
  hash = (37 * hash) + USER_PAYLOAD_FIELD_NUMBER;
  hash = (53 * hash) + getUserPayload().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.tez/tez-dag

/**
 * <code>optional .RootInputDataInformationEventProto root_input_data_information_event = 5;</code>
 */
public Builder mergeRootInputDataInformationEvent(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto value) {
 if (rootInputDataInformationEventBuilder_ == null) {
  if (((bitField0_ & 0x00000010) == 0x00000010) &&
    rootInputDataInformationEvent_ != org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) {
   rootInputDataInformationEvent_ =
    org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.newBuilder(rootInputDataInformationEvent_).mergeFrom(value).buildPartial();
  } else {
   rootInputDataInformationEvent_ = value;
  }
  onChanged();
 } else {
  rootInputDataInformationEventBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000010;
 return this;
}
/**
origin: org.apache.tez/tez-api

public org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto buildPartial() {
 org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto result = new org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto(this);
 int from_bitField0_ = bitField0_;
 int to_bitField0_ = 0;
 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  to_bitField0_ |= 0x00000001;
 }
 result.sourceIndex_ = sourceIndex_;
 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  to_bitField0_ |= 0x00000002;
 }
 result.targetIndex_ = targetIndex_;
 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  to_bitField0_ |= 0x00000004;
 }
 result.userPayload_ = userPayload_;
 result.bitField0_ = to_bitField0_;
 onBuilt();
 return result;
}
origin: org.apache.tez/tez-api

public Builder toBuilder() { return newBuilder(this); }
origin: org.apache.tez/tez-api

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto prototype) {
origin: org.apache.tez/tez-dag

/**
 * <code>optional .RootInputDataInformationEventProto root_input_data_information_event = 5;</code>
 */
public Builder clearRootInputDataInformationEvent() {
 if (rootInputDataInformationEventBuilder_ == null) {
  rootInputDataInformationEvent_ = org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance();
  onChanged();
 } else {
  rootInputDataInformationEventBuilder_.clear();
 }
 bitField0_ = (bitField0_ & ~0x00000010);
 return this;
}
/**
origin: org.apache.tez/tez-api

public org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto getDefaultInstanceForType() {
 return org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance();
}
origin: org.apache.tez/tez-api

public Builder mergeFrom(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other) {
 if (other == org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) return this;
 if (other.hasSourceIndex()) {
  setSourceIndex(other.getSourceIndex());
 }
 if (other.hasTargetIndex()) {
  setTargetIndex(other.getTargetIndex());
 }
 if (other.hasUserPayload()) {
  setUserPayload(other.getUserPayload());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: org.apache.tez/tez-api

public static Builder newBuilder(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
origin: org.apache.tez/tez-dag

private void initFields() {
 sourceInfo_ = org.apache.tez.dag.recovery.records.RecoveryProtos.EventMetaDataProto.getDefaultInstance();
 destinationInfo_ = org.apache.tez.dag.recovery.records.RecoveryProtos.EventMetaDataProto.getDefaultInstance();
 dataMovementEvent_ = org.apache.tez.runtime.api.events.EventProtos.DataMovementEventProto.getDefaultInstance();
 compositeDataMovementEvent_ = org.apache.tez.runtime.api.events.EventProtos.CompositeEventProto.getDefaultInstance();
 rootInputDataInformationEvent_ = org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance();
 inputInitializerEvent_ = org.apache.tez.runtime.api.events.EventProtos.RootInputInitializerEventProto.getDefaultInstance();
 eventTime_ = 0L;
 vmEvent_ = org.apache.tez.runtime.api.events.EventProtos.VertexManagerEventProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
origin: org.apache.tez/tez-runtime-internals

public static EventProtos.RootInputDataInformationEventProto
  convertRootInputDataInformationEventToProto(InputDataInformationEvent event) {
 EventProtos.RootInputDataInformationEventProto.Builder builder =
   EventProtos.RootInputDataInformationEventProto.newBuilder();
 builder.setSourceIndex(event.getSourceIndex());
 builder.setTargetIndex(event.getTargetIndex());
 if (event.getUserPayload() != null) {
  builder.setUserPayload(ByteString.copyFrom(event.getUserPayload()));
 }
 return builder.build();
}
origin: org.apache.tez/tez-api

/**
 * <code>optional bytes user_payload = 3;</code>
 */
public Builder clearUserPayload() {
 bitField0_ = (bitField0_ & ~0x00000004);
 userPayload_ = getDefaultInstance().getUserPayload();
 onChanged();
 return this;
}
origin: org.apache.tez/tez-runtime-internals

public static InputDataInformationEvent
  convertRootInputDataInformationEventFromProto(
  EventProtos.RootInputDataInformationEventProto proto) {
 InputDataInformationEvent diEvent = InputDataInformationEvent.createWithSerializedPayload(
   proto.getSourceIndex(),
   proto.hasUserPayload() ? proto.getUserPayload().asReadOnlyByteBuffer() : null);
 diEvent.setTargetIndex(proto.getTargetIndex());
 return diEvent;
}
org.apache.tez.runtime.api.eventsEventProtos$RootInputDataInformationEventProto

Javadoc

Protobuf type RootInputDataInformationEventProto

Most used methods

  • newBuilder
  • getDefaultInstance
  • getSourceIndex
    optional int32 source_index = 1;
  • getTargetIndex
    optional int32 target_index = 2;
  • getUserPayload
    optional bytes user_payload = 3;
  • hasUserPayload
    optional bytes user_payload = 3;
  • parseFrom
  • <init>
  • equals
  • getDescriptorForType
  • getSerializedSize
  • getUnknownFields
  • getSerializedSize,
  • getUnknownFields,
  • hasSourceIndex,
  • hasTargetIndex,
  • hashCode,
  • initFields,
  • isInitialized,
  • makeExtensionsImmutable,
  • parseUnknownField,
  • toBuilder

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now