Class MatchFunc
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_string.MatchFunc
- All Implemented Interfaces:
java.util.function.Function<java.lang.String,java.lang.String>
public class MatchFunc
extends java.lang.Object
implements java.util.function.Function<java.lang.String,java.lang.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.
-
Constructor Summary
Constructors Constructor Description MatchFunc(java.lang.Object... funcs) -
Method Summary
Modifier and Type Method Description java.lang.Stringapply(java.lang.String s)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
MatchFunc
public MatchFunc(java.lang.Object... funcs)
-
-
Method Details
-
apply
public java.lang.String apply(java.lang.String s)- Specified by:
applyin interfacejava.util.function.Function<java.lang.String,java.lang.String>
-