Class BindPointParser

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

public class BindPointParser
extends java.lang.Object
implements java.util.function.BiFunction<java.lang.String,​java.util.Map<java.lang.String,​java.lang.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 
    Modifier and Type Class Description
    static class  BindPointParser.Result  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.regex.Pattern BINDPOINT_ANCHOR  
    static java.lang.String DEFINITION  
  • Constructor Summary

    Constructors 
    Constructor Description
    BindPointParser()  
  • Method Summary

    Modifier and Type Method Description
    BindPointParser.Result apply​(java.lang.String template, java.util.Map<java.lang.String,​java.lang.String> bindings)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.BiFunction

    andThen