Class PageFiller

  • All Implemented Interfaces:
    java.util.function.BiConsumer<long[],​java.lang.Long>, java.util.function.Consumer<long[]>

    public class PageFiller
    extends java.lang.Object
    implements java.util.function.Consumer<long[]>, java.util.function.BiConsumer<long[],​java.lang.Long>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(long[] page)  
      void accept​(long[] page, java.lang.Long offset)  
      static PageFiller allZeros​(int concurrency)  
      static PageFiller identity​(int concurrency)  
      static PageFiller longToDouble​(int concurrency, java.util.function.LongToDoubleFunction gen)  
      static PageFiller of​(int concurrency, java.util.function.LongUnaryOperator gen)  
      static PageFiller passThrough()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiConsumer

        andThen
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Method Detail

      • accept

        public void accept​(long[] page)
        Specified by:
        accept in interface java.util.function.Consumer<long[]>
      • accept

        public void accept​(long[] page,
                           java.lang.Long offset)
        Specified by:
        accept in interface java.util.function.BiConsumer<long[],​java.lang.Long>
      • of

        public static PageFiller of​(int concurrency,
                                    java.util.function.LongUnaryOperator gen)
      • longToDouble

        public static PageFiller longToDouble​(int concurrency,
                                              java.util.function.LongToDoubleFunction gen)
      • allZeros

        public static PageFiller allZeros​(int concurrency)
      • identity

        public static PageFiller identity​(int concurrency)
      • passThrough

        public static PageFiller passThrough()