edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wmarshall484 <...@git.apache.org>
Subject [GitHub] incubator-quarks pull request: [WIP] Added join and joinLast funct...
Date Tue, 05 Apr 2016 06:29:06 GMT
Github user wmarshall484 commented on a diff in the pull request:

    https://github.com/apache/incubator-quarks/pull/60#discussion_r58492046
  
    --- Diff: api/window/src/main/java/quarks/window/Window.java ---
    @@ -157,4 +158,10 @@ Licensed to the Apache Software Foundation (ASF) under one
          */
         Function<T, K> getKeyFunction();
     
    +    /**
    +     * Retrieves the partitions in the window.
    +     * @return A map of the window's keys and partitions.
    --- End diff --
    
    The returned map is stable when synchronizing on its intrinsic lock, for example:
    ```java
    Map<Integer, Partition<Integer, Integer, ArrayList<Integer> > > partitions
= window.getPartitions();
    synchronized(partitions){
        // Stable operations on/with partitions
    }
    ```
    I've amended the doc to address this.


---
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.
---

Mime
View raw message