Skip to content
Snippets Groups Projects
Commit 84e5a198 authored by Christian Wulf's avatar Christian Wulf
Browse files

updated version of hppc

parent 4f36954a
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@
<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId>
<version>0.6.1</version>
<version>0.7.1</version>
</dependency>
</dependencies>
......
......@@ -20,14 +20,15 @@ import java.io.File;
import teetime.framework.AbstractConsumerStage;
import teetime.framework.OutputPort;
import com.carrotsearch.hppc.ObjectObjectOpenHashMap;
import com.carrotsearch.hppc.ObjectObjectHashMap;
import com.carrotsearch.hppc.ObjectObjectMap;
import com.google.common.io.Files;
public final class FileExtensionSwitch extends AbstractConsumerStage<File> {
private final OutputPort<File> unknownFileExtensionOutputPort = createOutputPort(File.class);
private final ObjectObjectOpenHashMap<String, OutputPort<File>> fileExtensions = new ObjectObjectOpenHashMap<String, OutputPort<File>>();
private final ObjectObjectMap<String, OutputPort<File>> fileExtensions = new ObjectObjectHashMap<String, OutputPort<File>>();
@Override
protected void execute(final File file) {
......
......@@ -15,8 +15,8 @@
*/
package teetime.stage.util;
import com.carrotsearch.hppc.ObjectIntHashMap;
import com.carrotsearch.hppc.ObjectIntMap;
import com.carrotsearch.hppc.ObjectIntOpenHashMap;
import com.carrotsearch.hppc.procedures.ObjectIntProcedure;
/**
......@@ -31,7 +31,7 @@ import com.carrotsearch.hppc.procedures.ObjectIntProcedure;
*/
public final class CountingMap<T> {
private final ObjectIntMap<T> map = new ObjectIntOpenHashMap<T>();
private final ObjectIntMap<T> map = new ObjectIntHashMap<T>();
/**
* Increments the value of key by one.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment