Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDTCatTree + HDTGenDisk #179

Merged
merged 9 commits into from
Nov 21, 2022
Prev Previous commit
add millis profiler to HDTCat and HDTDiff
  • Loading branch information
ate47 committed Nov 17, 2022
commit f0969fabd1eb467152c0e3b52e0d6793329beb55
1 change: 1 addition & 0 deletions hdt-api/src/main/java/org/rdfhdt/hdt/hdt/HDTSupplier.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.rdfhdt.hdt.options.HDTOptions;
import org.rdfhdt.hdt.options.HDTOptionsKeys;
import org.rdfhdt.hdt.triples.TripleString;
import org.rdfhdt.hdt.util.Profiler;

import java.io.IOException;
import java.nio.file.Path;
Expand Down
11 changes: 10 additions & 1 deletion hdt-api/src/main/java/org/rdfhdt/hdt/options/HDTOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
package org.rdfhdt.hdt.options;

import org.rdfhdt.hdt.rdf.RDFFluxStop;
import org.rdfhdt.hdt.util.Profiler;

import java.util.Objects;
import java.util.function.DoubleSupplier;
Expand Down Expand Up @@ -216,6 +217,15 @@ default void set(String key, RDFFluxStop fluxStop) {
set(key, fluxStop.asConfig());
}

/**
* set a profiler id
* @param key key
* @param profiler profiler
*/
default void set(String key, Profiler profiler) {
set(key, "!" + profiler.getId());
}

/**
* set a long value
*
Expand All @@ -230,5 +240,4 @@ default void set(String key, RDFFluxStop fluxStop) {
* @param options options
*/
void setOptions(String options);

}
Loading