Class FloatVectorPadRight

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

public class FloatVectorPadRight extends Object implements Function<float[],float[]>
Suffix 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

    • FloatVectorPadRight

      public FloatVectorPadRight(int size)
  • Method Details

    • apply

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