Package org.neo4j.graphalgo.result
Class AbstractCommunityResultBuilder<WRITE_RESULT>
- java.lang.Object
-
- org.neo4j.graphalgo.result.AbstractResultBuilder<WRITE_RESULT>
-
- org.neo4j.graphalgo.result.AbstractCommunityResultBuilder<WRITE_RESULT>
-
public abstract class AbstractCommunityResultBuilder<WRITE_RESULT> extends AbstractResultBuilder<WRITE_RESULT>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
buildCommunityCount
protected boolean
buildHistogram
protected java.util.OptionalLong
maybeCommunityCount
protected java.util.Optional<org.HdrHistogram.Histogram>
maybeCommunityHistogram
protected long
postProcessingDuration
-
Fields inherited from class org.neo4j.graphalgo.result.AbstractResultBuilder
computeMillis, config, createMillis, mutateMillis, nodeCount, nodePropertiesWritten, relationshipsWritten, writeMillis
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCommunityResultBuilder(org.neo4j.internal.kernel.api.procs.ProcedureCallContext callContext, org.neo4j.graphalgo.core.utils.paged.AllocationTracker tracker)
-
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>
communityHistogramOrNull()
AbstractCommunityResultBuilder<WRITE_RESULT>
withCommunityFunction(java.util.function.LongUnaryOperator communityFunction)
-
Methods inherited from class org.neo4j.graphalgo.result.AbstractResultBuilder
withComputeMillis, withConfig, withCreateMillis, withMutateMillis, withNodeCount, withNodePropertiesWritten, withRelationshipsWritten, withWriteMillis
-
-
-
-
Field Detail
-
buildHistogram
protected boolean buildHistogram
-
buildCommunityCount
protected boolean buildCommunityCount
-
postProcessingDuration
protected long postProcessingDuration
-
maybeCommunityCount
protected java.util.OptionalLong maybeCommunityCount
-
maybeCommunityHistogram
protected java.util.Optional<org.HdrHistogram.Histogram> maybeCommunityHistogram
-
-
Method Detail
-
communityHistogramOrNull
@Nullable protected @Nullable java.util.Map<java.lang.String,java.lang.Object> communityHistogramOrNull()
-
buildResult
protected abstract WRITE_RESULT buildResult()
-
withCommunityFunction
public AbstractCommunityResultBuilder<WRITE_RESULT> withCommunityFunction(java.util.function.LongUnaryOperator communityFunction)
-
build
public WRITE_RESULT build()
- Specified by:
build
in classAbstractResultBuilder<WRITE_RESULT>
-
-