Class CustomRefillerParameter<F,T>

java.lang.Object
ca.on.oicr.gsi.shesmu.plugin.refill.CustomRefillerParameter<F,T>
Type Parameters:
F - the refiller type
T - the type of the input row

public abstract class CustomRefillerParameter<F,T> extends Object
Create a custom refiller parameter
  • Constructor Details

    • CustomRefillerParameter

      public CustomRefillerParameter(String name, Imyhat type)
  • Method Details

    • of

      public static <F, T, R> CustomRefillerParameter<F,T> of(String name, BiConsumer<F,Function<T,R>> store, TypeGuarantee<R> type)
      Create a new custom refiller parameter
      Type Parameters:
      F - the type of the refiller
      T - the type of the input row
      R - the type of the value from the olive
      Parameters:
      name - the name of the parameter
      store - a callback to install the transformer function into the refiller object
      type - the type being consumed from Shesmu
    • name

      public final String name()
      The name of the parameter as the user will set it.
    • store

      public abstract void store(F refiller, Function<T,Object> value)
      Store the value extraction function in the refiller
    • type

      public final Imyhat type()
      The type of the parameter