Class FloatVectorPadLeft

java.lang.Object
io.nosqlbench.virtdata.lib.vectors.primitive.FloatVectorPadLeft
All Implemented Interfaces:
Function<float[],float[]>

public class FloatVectorPadLeft extends Object implements Function<float[],float[]>
Prefix the incoming array with an empty float[] so that it is sized up to at least the given size. If it is already at least that size, pass it through as-is.
  • Constructor Details

    • FloatVectorPadLeft

      public FloatVectorPadLeft(int size)
  • Method Details

    • apply

      public float[] apply(float[] floats)
      Specified by:
      apply in interface Function<float[],float[]>