All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nosqlbench.virtdata.core.bindings.ValuesMapBinder Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtdata libraries, based on apache commons math 4

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.virtdata.core.bindings;

import java.util.Map;

/**
 * 

ValuesMapBinder provides a way to apply an map of named object values to a template * object of type T to yield a new object instance of type R. The object array is * a positional argument list. There is no named-argument facility.

* *

Parameter Examples:

*
    *
  • T: prepared Statement, R: bound statement
  • *
  • T: string template, R: interpolated string value
  • *
* * @param The template type * @param The result type */ public interface ValuesMapBinder { /** * Using context instance of type S, AKA the template, create and bind values to * target object of type R * @param context A context object that knows how to provide an instance of type R * @param values An array of values which should be bound to the new R instance * @return The new result instance of R */ R bindValues(T context, Map values); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy