Class Scale

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_int.Scale
All Implemented Interfaces:
java.util.function.LongToIntFunction

public class Scale
extends java.lang.Object
implements java.util.function.LongToIntFunction
Scale the input to the
  • Constructor Summary

    Constructors 
    Constructor Description
    Scale​(double scaleFactor)  
  • Method Summary

    Modifier and Type Method Description
    int applyAsInt​(long value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Scale

      public Scale​(double scaleFactor)
  • Method Details

    • applyAsInt

      public int applyAsInt​(long value)
      Specified by:
      applyAsInt in interface java.util.function.LongToIntFunction