Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tajo-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,19 @@
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
</dependency>
<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections-api</artifactId>
</dependency>
<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections</artifactId>
</dependency>
<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections-testutils</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

package org.apache.tajo.engine.planner.physical;

import com.gs.collections.api.map.MutableMap;
import com.gs.collections.impl.map.mutable.UnifiedMap;
import org.apache.tajo.engine.planner.KeyProjector;
import org.apache.tajo.plan.function.FunctionContext;
import org.apache.tajo.plan.logical.GroupbyNode;
Expand All @@ -34,15 +36,15 @@
*/
public class HashAggregateExec extends AggregationExec {
private Tuple tuple = null;
private TupleMap<FunctionContext[]> hashTable;
private MutableMap<KeyTuple, FunctionContext[]> hashTable;
private KeyProjector hashKeyProjector;
private boolean computed = false;
private Iterator<Entry<KeyTuple, FunctionContext []>> iterator = null;

public HashAggregateExec(TaskAttemptContext ctx, GroupbyNode plan, PhysicalExec subOp) throws IOException {
super(ctx, plan, subOp);
hashKeyProjector = new KeyProjector(inSchema, plan.getGroupingColumns());
hashTable = new TupleMap<FunctionContext []>(10000);
hashTable = UnifiedMap.newMap();
this.tuple = new VTuple(plan.getOutSchema().size());
}

Expand Down
25 changes: 25 additions & 0 deletions tajo-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<hive.version>1.1.0</hive.version>
<netty.version>4.0.29.Final</netty.version>
<jersey.version>2.6</jersey.version>
<gs.collection>6.2.0</gs.collection>
<tajo.root>${project.parent.relativePath}/..</tajo.root>
<extra.source.path>src/main/hadoop-${hadoop.version}</extra.source.path>
</properties>
Expand Down Expand Up @@ -1131,6 +1132,30 @@
<artifactId>json-path</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections-api</artifactId>
<version>${gs.collection}</version>
</dependency>

<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections</artifactId>
<version>${gs.collection}</version>
</dependency>

<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections-testutils</artifactId>
<version>${gs.collection}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.goldmansachs</groupId>
<artifactId>gs-collections-forkjoin</artifactId>
<version>${gs.collection}</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
Expand Down