Class DoubleVectorPadLeft

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

public class DoubleVectorPadLeft extends Object implements Function<double[],double[]>
Prefix the incoming array with an empty double[] 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

    • DoubleVectorPadLeft

      public DoubleVectorPadLeft(int size)
  • Method Details

    • apply

      public double[] apply(double[] doubles)
      Specified by:
      apply in interface Function<double[],double[]>