Class DoubleVectorPadRight

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

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

    • DoubleVectorPadRight

      public DoubleVectorPadRight(int size)
  • Method Details

    • apply

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