Package org.neo4j.graphalgo.result
Class AbstractCentralityResultBuilder<WRITE_RESULT>
- java.lang.Object
-
- org.neo4j.graphalgo.result.AbstractResultBuilder<WRITE_RESULT>
-
- org.neo4j.graphalgo.result.AbstractCentralityResultBuilder<WRITE_RESULT>
-
public abstract class AbstractCentralityResultBuilder<WRITE_RESULT> extends AbstractResultBuilder<WRITE_RESULT>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
buildHistogram
protected java.util.function.LongToDoubleFunction
centralityFunction
protected java.util.Optional<org.HdrHistogram.DoubleHistogram>
maybeCentralityHistogram
protected long
postProcessingMillis
-
Fields inherited from class org.neo4j.graphalgo.result.AbstractResultBuilder
computeMillis, config, createMillis, mutateMillis, nodeCount, nodePropertiesWritten, relationshipsWritten, writeMillis
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCentralityResultBuilder(org.neo4j.internal.kernel.api.procs.ProcedureCallContext callContext, int concurrency)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description WRITE_RESULT
build()
protected abstract WRITE_RESULT
buildResult()
protected @Nullable java.util.Map<java.lang.String,java.lang.Object>
centralityHistogramOrNull()
AbstractCentralityResultBuilder<WRITE_RESULT>
withCentralityFunction(java.util.function.LongToDoubleFunction centralityFunction)
-
Methods inherited from class org.neo4j.graphalgo.result.AbstractResultBuilder
withComputeMillis, withConfig, withCreateMillis, withMutateMillis, withNodeCount, withNodePropertiesWritten, withRelationshipsWritten, withWriteMillis
-
-
-
-
Field Detail
-
buildHistogram
protected boolean buildHistogram
-
postProcessingMillis
protected long postProcessingMillis
-
maybeCentralityHistogram
protected java.util.Optional<org.HdrHistogram.DoubleHistogram> maybeCentralityHistogram
-
centralityFunction
protected java.util.function.LongToDoubleFunction centralityFunction
-
-
Method Detail
-
centralityHistogramOrNull
@Nullable protected @Nullable java.util.Map<java.lang.String,java.lang.Object> centralityHistogramOrNull()
-
buildResult
protected abstract WRITE_RESULT buildResult()
-
withCentralityFunction
public AbstractCentralityResultBuilder<WRITE_RESULT> withCentralityFunction(java.util.function.LongToDoubleFunction centralityFunction)
-
build
public WRITE_RESULT build()
- Specified by:
build
in classAbstractResultBuilder<WRITE_RESULT>
-
-