Class MatchFunc

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_string.MatchFunc
All Implemented Interfaces:
Function<String,String>

public class MatchFunc extends Object implements Function<String,String>
Match any input with a regular expression, and apply the associated function to it, yielding the value. If no matches occur, then the original value is passed through unchanged. Patterns and functions are passed as even,odd pairs indexed from the 0th position. Instead of a function, a String value may be provided as the associated output value.