Class BindPointParser

java.lang.Object
io.nosqlbench.virtdata.core.templates.BindPointParser
All Implemented Interfaces:
BiFunction<String,Map<String,String>,BindPointParser.Result>

public class BindPointParser extends Object implements BiFunction<String,Map<String,String>,BindPointParser.Result>
BindPointParser parses a user-provide string template into spans. It builds a simple list of BindPoints, and provides both the parsed spans and the BindPoints in a result. Spans are provided as a list of even,(odd,even,...) string values, where there is always an odd number of entries and odd-numbered entries are the text extracted from a binding. The binding values are not changed from the user-specified string, and are not normalized to one of the BindPoint.Types. This is for troubleshooting and diagnostic purposes. Callers will need to look at the BindPoint types to know whether a binding is provided and thus how to process it.