Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
84e5a198
Commit
84e5a198
authored
9 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
updated version of hppc
parent
4f36954a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/main/java/teetime/stage/FileExtensionSwitch.java
+3
-2
3 additions, 2 deletions
src/main/java/teetime/stage/FileExtensionSwitch.java
src/main/java/teetime/stage/util/CountingMap.java
+2
-2
2 additions, 2 deletions
src/main/java/teetime/stage/util/CountingMap.java
with
6 additions
and
5 deletions
pom.xml
+
1
−
1
View file @
84e5a198
...
...
@@ -125,7 +125,7 @@
<dependency>
<groupId>
com.carrotsearch
</groupId>
<artifactId>
hppc
</artifactId>
<version>
0.
6
.1
</version>
<version>
0.
7
.1
</version>
</dependency>
</dependencies>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/teetime/stage/FileExtensionSwitch.java
+
3
−
2
View file @
84e5a198
...
...
@@ -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
ObjectObject
OpenHash
Map
<
String
,
OutputPort
<
File
>>
fileExtensions
=
new
ObjectObject
Open
HashMap
<
String
,
OutputPort
<
File
>>();
private
final
ObjectObjectMap
<
String
,
OutputPort
<
File
>>
fileExtensions
=
new
ObjectObjectHashMap
<
String
,
OutputPort
<
File
>>();
@Override
protected
void
execute
(
final
File
file
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/teetime/stage/util/CountingMap.java
+
2
−
2
View file @
84e5a198
...
...
@@ -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
ObjectInt
Open
HashMap
<
T
>();
private
final
ObjectIntMap
<
T
>
map
=
new
ObjectIntHashMap
<
T
>();
/**
* Increments the value of key by one.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment