MLHR-1943 #resolve #comment Added from previous release

Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/commit/691ee6fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/tree/691ee6fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/diff/691ee6fa

Branch: refs/heads/master
Commit: 691ee6fadf4b98b81a6032b742507ac238292370
Parents: c31c5ea
Author: bright <[email protected]>
Authored: Mon Dec 14 15:35:41 2015 -0800
Committer: bright <[email protected]>
Committed: Tue Dec 15 10:20:07 2015 -0800

----------------------------------------------------------------------
 .../dimensions/aggregator/AggregateEvent.java   | 35 ++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/691ee6fa/library/src/main/java/com/datatorrent/lib/dimensions/aggregator/AggregateEvent.java
----------------------------------------------------------------------
diff --git 
a/library/src/main/java/com/datatorrent/lib/dimensions/aggregator/AggregateEvent.java
 
b/library/src/main/java/com/datatorrent/lib/dimensions/aggregator/AggregateEvent.java
new file mode 100644
index 0000000..b1c68f5
--- /dev/null
+++ 
b/library/src/main/java/com/datatorrent/lib/dimensions/aggregator/AggregateEvent.java
@@ -0,0 +1,35 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.datatorrent.lib.dimensions.aggregator;
+
+import it.unimi.dsi.fastutil.Hash;
+
+public interface AggregateEvent
+{
+  int getAggregatorIndex();
+
+  public static interface Aggregator<EVENT, AGGREGATE extends AggregateEvent> 
extends Hash.Strategy<EVENT>
+  {
+    AGGREGATE getGroup(EVENT src, int aggregatorIndex);
+
+    void aggregate(AGGREGATE dest, EVENT src);
+
+    void aggregate(AGGREGATE dest, AGGREGATE src);
+  }
+}

Reply via email to