internal StoreProcessorTask(string name, Statistics statistics, int threads, RecordStore <R> store, StoreAccess storeAccess, string builderPrefix, ProgressMonitorFactory.MultiPartBuilder builder, CacheAccess cacheAccess, StoreProcessor processor, QueueDistribution distribution) : base(name, statistics, threads) { this._store = store; this._storeAccess = storeAccess; this._cacheAccess = cacheAccess; this._processor = processor; this._distribution = distribution; this._progressListener = builder.ProgressForPart(name + IndexedPartName(store.StorageFile.Name, builderPrefix), store.HighId); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static void testRecordDistribution(QueueDistribution queueDistribution) throws InterruptedException private static void TestRecordDistribution(QueueDistribution queueDistribution) { ThreadLocalRandom randomGenerator = ThreadLocalRandom.current(); int numberOfThreads = randomGenerator.Next(MAX_NUMBER_OF_THREADS); int recordsPerCpu = randomGenerator.Next(int.MaxValue); QueueDistribution_QueueDistributor <RelationshipRecord> distributor = queueDistribution.Distributor(recordsPerCpu, numberOfThreads); for (int iteration = 0; iteration <= NUMBER_OF_DISTRIBUTION_ITERATIONS; iteration++) { RelationshipRecord relationshipRecord = new RelationshipRecord(1); relationshipRecord.FirstNode = NextLong(randomGenerator); relationshipRecord.SecondNode = NextLong(randomGenerator); distributor.Distribute(relationshipRecord, (record, qIndex) => assertThat("Distribution index for record " + record + " should be within a range of available " + "executors, while expected records per cpu is: " + recordsPerCpu, qIndex, allOf(greaterThanOrEqualTo(0), lessThan(numberOfThreads)))); } }
public SchemaStoreProcessorTask(string name, Statistics statistics, int threads, RecordStore <R> store, StoreAccess storeAccess, string builderPrefix, SchemaRecordCheck schemaRecordCheck, ProgressMonitorFactory.MultiPartBuilder builder, CacheAccess cacheAccess, StoreProcessor processor, QueueDistribution distribution) : base(name, statistics, threads, store, storeAccess, builderPrefix, builder, cacheAccess, processor, distribution) { this._schemaRecordCheck = schemaRecordCheck; }
public ParallelRecordScanner(string name, Statistics statistics, int threads, BoundedIterable <RECORD> store, MultiPartBuilder builder, RecordProcessor <RECORD> processor, CacheAccess cacheAccess, QueueDistribution distribution, params IterableStore[] warmUpStores) : base(name, statistics, threads, store, builder, processor, warmUpStores) { this._cacheAccess = cacheAccess; this._distribution = distribution; }
private StoreProcessorTask <RECORD> Create <RECORD>(string name, RecordStore <RECORD> input, StoreProcessor processor, QueueDistribution distribution) where RECORD : Org.Neo4j.Kernel.impl.store.record.AbstractBaseRecord { return(new StoreProcessorTask <RECORD>(name, _statistics, _numberOfThreads, input, _nativeStores, name, _multiPartBuilder, _cacheAccess, processor, distribution)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: private <RECORD> RecordScanner<RECORD> recordScanner(String name, org.neo4j.helpers.collection.BoundedIterable<RECORD> store, RecordProcessor<RECORD> processor, Stage stage, QueueDistribution distribution, @SuppressWarnings("rawtypes") IterableStore... warmupStores) private RecordScanner <RECORD> RecordScanner <RECORD>(string name, BoundedIterable <RECORD> store, RecordProcessor <RECORD> processor, Stage stage, QueueDistribution distribution, params IterableStore[] warmupStores) { return(stage.Parallel ? new ParallelRecordScanner <RECORD>(name, _statistics, _numberOfThreads, store, _multiPartBuilder, processor, _cacheAccess, distribution, warmupStores) : new SequentialRecordScanner <RECORD>(name, _statistics, _numberOfThreads, store, _multiPartBuilder, processor, warmupStores)); }