java.lang.Object
io.nosqlbench.virtdata.core.templates.StringBindings
- All Implemented Interfaces:
Binder<java.lang.String>, java.util.function.LongFunction<java.lang.String>
public class StringBindings
extends java.lang.Object
implements Binder<java.lang.String>
Allows the generation of strings from a string template and bindings template.
-
-
Method Summary
| Modifier and Type |
Method |
Description |
java.lang.String |
bind(long value) |
Call the data mapper bindings, assigning the returned values positionally to the anchors in the string binding.
|
java.lang.String |
toString() |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.nosqlbench.virtdata.core.bindings.Binder
apply
-
-
Method Details
-
public java.lang.String bind(long value)
Call the data mapper bindings, assigning the returned values positionally to the anchors in the string binding.
- Specified by:
bind in interface Binder<java.lang.String>
- Parameters:
value - a long input value
- Returns:
- a new String containing the mapped values
-
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object