apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ishark <...@git.apache.org>
Subject [GitHub] incubator-apex-core pull request: APEXCORE-10 #resolve Changes for...
Date Sat, 26 Mar 2016 01:42:22 GMT
Github user ishark commented on a diff in the pull request:

    --- Diff: api/src/main/java/com/datatorrent/api/DAG.java ---
    @@ -250,6 +250,24 @@
       public abstract <T> void setAttribute(Operator operator, Attribute<T> key,
T value);
    +   * Set affinity between operators
    +   * @param locality
    +   * @param relaxLocality
    +   * @param first operator
    +   * @param one or more operators
    +   */
    +  public abstract void setAffinity(Locality locality, boolean relaxLocality, String firstOperator,
String... operators);
    --- End diff --
    Yes, the affinity/anti-affinity can be set from attributes directly. These were added
as convenience methods as per discussion on dev mailing list. Here are sample usages with
these methods:
    Compared to when setting via attributes:

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message