basic doc updates and cleanups

This commit is contained in:
Jonathan Shook 2021-03-10 13:00:50 -06:00
parent 345877c0fa
commit ea8702c905
3 changed files with 15 additions and 8 deletions

View File

@ -8,6 +8,11 @@ import io.nosqlbench.nb.annotations.Service;
import java.util.function.Supplier;
/**
* The histogram error handler will create, if needed, a histogram metrics
* object for the named {@code "errorhistos.simplename" + e.getClass().getSimpleName()},
* and then add the current session time to it.
*/
@Service(value = ErrorHandler.class, selector = "histogram")
public class HistogramErrorHandler implements ErrorHandler, ErrorMetrics.Aware {
private ExceptionHistoMetrics exceptionHistoMetrics;

View File

@ -29,14 +29,6 @@ public class RawStmtsBlock extends StatementsOwner {
public RawStmtsBlock() {}
public void setFieldsByReflection(Map<String, Object> propsmap) {
// Object stmtValues = propsmap.remove("statements");
// if (stmtValues!=null) {
// if (stmtValues instanceof List) {
// setByObject(stmtValues);
// } else {
// throw new RuntimeException("Invalid type for statements property: " + stmtValues.getClass().getCanonicalName());
// }
// }
super.setFieldsByReflection(propsmap);
}

View File

@ -61,6 +61,16 @@ public class StatementsOwner extends RawStmtFields {
@SuppressWarnings("unchecked")
public void setStatementsFieldByType(Object object) {
// TODO: Re-plumb this code path with clarity around structural traversal
// LinkedHashMap<String,LinkedHashMap<String,Object>> namedStatementMaps = new LinkedHashMap<>();
// if (object instanceof List) {
// List<?> entries = (ArrayList)object;
// for (Object entry : entries) {
//
// }
// }
//
if (object instanceof List) {
List<Object> stmtList = (List<Object>) object;
List<RawStmtDef> defs = new ArrayList<>(stmtList.size());