public class RecordDistributor extends Object
BlockingQueue onto multiple workers.| Modifier and Type | Method and Description |
|---|---|
static long |
calculateRecodsPerCpu(long highId,
int numberOfThreads) |
static <RECORD> void |
distributeRecords(int numberOfThreads,
String workerNames,
int queueSize,
Iterator<RECORD> records,
org.neo4j.helpers.progress.ProgressListener progress,
RecordProcessor<RECORD> processor,
QueueDistribution.QueueDistributor<RECORD> idDistributor) |
public static <RECORD> void distributeRecords(int numberOfThreads,
String workerNames,
int queueSize,
Iterator<RECORD> records,
org.neo4j.helpers.progress.ProgressListener progress,
RecordProcessor<RECORD> processor,
QueueDistribution.QueueDistributor<RECORD> idDistributor)
public static long calculateRecodsPerCpu(long highId,
int numberOfThreads)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.