misc improvements

This commit is contained in:
Jonathan Shook
2024-01-11 12:54:04 -06:00
parent 990d3b73bb
commit 6a668f3947
3 changed files with 10 additions and 7 deletions

View File

@@ -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(

View File

@@ -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(),

View File

@@ -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[]> {