Class PageFiller
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.paged.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()
-
-
-
Method Detail
-
accept
public void accept(long[] page)
- Specified by:
accept
in interfacejava.util.function.Consumer<long[]>
-
accept
public void accept(long[] page, java.lang.Long offset)
- Specified by:
accept
in interfacejava.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()
-
-