Tabnine Logo
GlobalStreamId.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
org.apache.storm.generated.GlobalStreamId

Best Java code snippets using org.apache.storm.generated.GlobalStreamId.equals (Showing top 8 results out of 315)

origin: apache/storm

@Override
public boolean equals(java.lang.Object that) {
 if (that == null)
  return false;
 if (that instanceof GlobalStreamId)
  return this.equals((GlobalStreamId)that);
 return false;
}
origin: apache/storm

@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  TaskStream that = (TaskStream) o;
  if (sourceTask != that.sourceTask) {
    return false;
  }
  return streamId != null ? streamId.equals(that.streamId) : that.streamId == null;
}
origin: apache/storm

private TupleType getTupleType(Tuple tuple) {
  if (_idStreamSpec != null
    && tuple.getSourceGlobalStreamId().equals(_idStreamSpec._id)) {
    return TupleType.ID;
  } else if (!_sourceArgs.isEmpty()
        && tuple.getSourceStreamId().equals(Constants.COORDINATED_STREAM_ID)) {
    return TupleType.COORD;
  } else {
    return TupleType.REGULAR;
  }
}
origin: apache/storm

private TupleType getTupleType(Tuple tuple, TrackedBatch batch) {
  CoordCondition cond = batch.condition;
  if (cond.commitStream != null
    && tuple.getSourceGlobalStreamId().equals(cond.commitStream)) {
    return TupleType.COMMIT;
  } else if (cond.expectedTaskReports > 0
        && tuple.getSourceStreamId().startsWith(COORD_STREAM_PREFIX)) {
    return TupleType.COORD;
  } else {
    return TupleType.REGULAR;
  }
}
origin: org.apache.storm/storm-core

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof GlobalStreamId)
  return this.equals((GlobalStreamId)that);
 return false;
}
origin: org.apache.storm/storm-core

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  TaskStream that = (TaskStream) o;
  if (sourceTask != that.sourceTask) return false;
  return streamId != null ? streamId.equals(that.streamId) : that.streamId == null;
}
origin: org.apache.storm/storm-core

private TupleType getTupleType(Tuple tuple) {
  if(_idStreamSpec!=null
      && tuple.getSourceGlobalStreamId().equals(_idStreamSpec._id)) {
    return TupleType.ID;
  } else if(!_sourceArgs.isEmpty()
      && tuple.getSourceStreamId().equals(Constants.COORDINATED_STREAM_ID)) {
    return TupleType.COORD;
  } else {
    return TupleType.REGULAR;
  }
}

origin: org.apache.storm/storm-core

private TupleType getTupleType(Tuple tuple, TrackedBatch batch) {
  CoordCondition cond = batch.condition;
  if(cond.commitStream!=null
      && tuple.getSourceGlobalStreamId().equals(cond.commitStream)) {
    return TupleType.COMMIT;
  } else if(cond.expectedTaskReports > 0
      && tuple.getSourceStreamId().startsWith(COORD_STREAM_PREFIX)) {
    return TupleType.COORD;
  } else {
    return TupleType.REGULAR;
  }
}

org.apache.storm.generatedGlobalStreamIdequals

Popular methods of GlobalStreamId

  • <init>
    Performs a deep copy on other.
  • get_componentId
  • get_streamId
  • hashCode
  • is_set_componentId
    Returns true if field componentId is set (has been assigned a value) and false otherwise
  • is_set_streamId
    Returns true if field streamId is set (has been assigned a value) and false otherwise
  • read
  • set_componentId
  • set_componentId_isSet
  • set_streamId
  • set_streamId_isSet
  • toString
  • set_streamId_isSet,
  • toString,
  • unset_componentId,
  • unset_streamId,
  • validate,
  • write,
  • scheme

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
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