mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
basic doc updates and cleanups
This commit is contained in:
parent
345877c0fa
commit
ea8702c905
@ -8,6 +8,11 @@ import io.nosqlbench.nb.annotations.Service;
|
|||||||
|
|
||||||
import java.util.function.Supplier;
|
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")
|
@Service(value = ErrorHandler.class, selector = "histogram")
|
||||||
public class HistogramErrorHandler implements ErrorHandler, ErrorMetrics.Aware {
|
public class HistogramErrorHandler implements ErrorHandler, ErrorMetrics.Aware {
|
||||||
private ExceptionHistoMetrics exceptionHistoMetrics;
|
private ExceptionHistoMetrics exceptionHistoMetrics;
|
||||||
|
@ -29,14 +29,6 @@ public class RawStmtsBlock extends StatementsOwner {
|
|||||||
public RawStmtsBlock() {}
|
public RawStmtsBlock() {}
|
||||||
|
|
||||||
public void setFieldsByReflection(Map<String, Object> propsmap) {
|
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);
|
super.setFieldsByReflection(propsmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +61,16 @@ public class StatementsOwner extends RawStmtFields {
|
|||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void setStatementsFieldByType(Object object) {
|
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) {
|
if (object instanceof List) {
|
||||||
List<Object> stmtList = (List<Object>) object;
|
List<Object> stmtList = (List<Object>) object;
|
||||||
List<RawStmtDef> defs = new ArrayList<>(stmtList.size());
|
List<RawStmtDef> defs = new ArrayList<>(stmtList.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user