예제 #1
0
            public override void Run()
            {
                SameGroupDetector sameGroupDetector = new SameGroupDetector();

                // In all chunks except the last this chunk also takes care of the detection in the seam,
                // but for the last one there's no seam at the end.
                long end = Last ? ToExclusive - 1 : ToExclusive;

                for (long i = FromInclusive; i < end; i++)
                {
                    Detect(sameGroupDetector, i);
                    if (++LocalProgress == 1000)
                    {
                        Progress.add(LocalProgress);
                        LocalProgress = 0;
                    }
                }
                Progress.add(LocalProgress);
            }
예제 #2
0
 public override void visitNodeCount(int labelId, long count)
 {
     _nodeEntries.incrementAndGet();
     _reporter.forCounts(new CountsEntry(nodeKey(labelId), count), CHECK_NODE_COUNT);
     _listener.add(1);
 }