Class ContextualArrayBindings<C,​R>

java.lang.Object
io.nosqlbench.virtdata.core.bindings.ContextualArrayBindings<C,​R>
Type Parameters:
C - The type of the contextual template object.
R - The resulting type from binding mapped values with the contextual template C
All Implemented Interfaces:
Binder<R>, java.util.function.LongFunction<R>

public class ContextualArrayBindings<C,​R>
extends java.lang.Object
implements Binder<R>

A thread-local template that describes a set of data mappers, a context object, and a method for applying mapped values to the context object via an object array. This type is used in thread-local scope to map thread-specific data mapper instances to a contextual template object and a method for applying mapped values to it.

This type is generally constructed by a ContextualBindingsTemplate.

  • Constructor Summary

    Constructors 
    Constructor Description
    ContextualArrayBindings​(Bindings bindings, C context, ValuesArrayBinder<C,​R> valuesArrayBinder)  
  • Method Summary

    Modifier and Type Method Description
    R bind​(long value)
    Bind values derived from a long to some object, returning an object type R
    Bindings getBindings()  
    C getContext()  
    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
  • Constructor Details

  • Method Details

    • getBindings

      public Bindings getBindings()
    • getContext

      public C getContext()
    • bind

      public R bind​(long value)
      Description copied from interface: Binder
      Bind values derived from a long to some object, returning an object type R
      Specified by:
      bind in interface Binder<C>
      Parameters:
      value - a long input value
      Returns:
      an R
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object