mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
misc improvements
This commit is contained in:
@@ -239,6 +239,10 @@ public class NBLoggerConfig extends ConfigurationFactory {
|
||||
builder.newAppenderRef("SESSION_APPENDER")
|
||||
.addAttribute("level", fileLevel)
|
||||
);
|
||||
} else {
|
||||
throw new RuntimeException("Session name must be set in logger config. If you are getting this error, then it means" +
|
||||
" that the session has not initialized properly, and that some unexpected error occurred before the logging" +
|
||||
" system was initialized. Look for errors prior to this.");
|
||||
}
|
||||
|
||||
rootBuilder.add(
|
||||
|
||||
@@ -40,19 +40,13 @@ public class NBStatusComponent extends NBBaseComponent {
|
||||
}
|
||||
|
||||
public Status status() {
|
||||
|
||||
List<Status> subbeats = new ArrayList<>();
|
||||
StatusVisitor statusVisitor = new StatusVisitor(subbeats);
|
||||
|
||||
for (NBComponent child : getChildren()) {
|
||||
NBComponentTraversal.visitDepthFirstLimited(child,statusVisitor,c -> c instanceof NBStatusComponent);
|
||||
}
|
||||
|
||||
// for (NBComponent child : getChildren()) {
|
||||
// if (child instanceof NBStatusComponent beat) {
|
||||
// subbeats.add(beat.heartbeat());
|
||||
// }
|
||||
// }
|
||||
|
||||
return new Status(
|
||||
getLabels(),
|
||||
this.getComponentState(),
|
||||
|
||||
@@ -22,6 +22,11 @@ import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
|
||||
|
||||
import java.util.function.LongFunction;
|
||||
|
||||
/**
|
||||
* This represents an enumerated population of vectors of some dimension,
|
||||
* where any ordinal values which address outside of that enumeration
|
||||
* simply wrap with modulo.
|
||||
*/
|
||||
@ThreadSafeMapper
|
||||
@Categories(Category.experimental)
|
||||
public class DNN_euclidean_v_wrap implements LongFunction<float[]> {
|
||||
|
||||
Reference in New Issue
Block a user