Codota Logo
EventProtos$RootInputDataInformationEventProto.getSourceIndex
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
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-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-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;
}
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;
}
org.apache.tez.runtime.api.eventsEventProtos$RootInputDataInformationEventProtogetSourceIndex

Javadoc

optional int32 source_index = 1;

Popular methods of EventProtos$RootInputDataInformationEventProto

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now