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.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
BINDPOINT_ANCHOR
-
DEFINITION
- See Also:
-
-
Constructor Details
-
BindPointParser
public BindPointParser()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<String,Map<String, String>, BindPointParser.Result>
-