//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void buildReferencePopulatorSingleThreaded(Generator[] generators, java.util.Collection<org.neo4j.kernel.api.index.IndexEntryUpdate<?>> updates) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException private void BuildReferencePopulatorSingleThreaded <T1>(Generator[] generators, ICollection <T1> updates) { IndexPopulator referencePopulator = _indexProvider.getPopulator(_descriptor2, _samplingConfig, heapBufferFactory(1024)); referencePopulator.Create(); bool referenceSuccess = false; try { foreach (Generator generator in generators) { generator.Reset(); for (int i = 0; i < BATCHES_PER_THREAD; i++) { referencePopulator.Add(generator.Batch()); } } using (IndexUpdater updater = referencePopulator.NewPopulatingUpdater(_nodePropertyAccessor)) { //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: for (org.neo4j.kernel.api.index.IndexEntryUpdate<?> update : updates) foreach (IndexEntryUpdate <object> update in updates) { updater.Process(update); } } referenceSuccess = true; } finally { referencePopulator.Close(referenceSuccess); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void add(java.util.Collection<? extends org.neo4j.kernel.api.index.IndexEntryUpdate<?>> updates) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException public override void Add <T1>(ICollection <T1> updates) where T1 : Org.Neo4j.Kernel.Api.Index.IndexEntryUpdate <T1> { //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: java.util.Map<org.neo4j.values.storable.CoordinateReferenceSystem,java.util.List<org.neo4j.kernel.api.index.IndexEntryUpdate<?>>> batchMap = new java.util.HashMap<>(); IDictionary <CoordinateReferenceSystem, IList <IndexEntryUpdate <object> > > batchMap = new Dictionary <CoordinateReferenceSystem, IList <IndexEntryUpdate <object> > >(); //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: for (org.neo4j.kernel.api.index.IndexEntryUpdate<?> update : updates) foreach (IndexEntryUpdate <object> update in updates) { PointValue point = ( PointValue )update.Values()[0]; //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: java.util.List<org.neo4j.kernel.api.index.IndexEntryUpdate<?>> batch = batchMap.computeIfAbsent(point.getCoordinateReferenceSystem(), k -> new java.util.ArrayList<>()); IList <IndexEntryUpdate <object> > batch = batchMap.computeIfAbsent(point.CoordinateReferenceSystem, k => new List <IndexEntryUpdate <object> >()); batch.Add(update); } //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: for (java.util.Map.Entry<org.neo4j.values.storable.CoordinateReferenceSystem,java.util.List<org.neo4j.kernel.api.index.IndexEntryUpdate<?>>> entry : batchMap.entrySet()) foreach (KeyValuePair <CoordinateReferenceSystem, IList <IndexEntryUpdate <object> > > entry in batchMap.SetOfKeyValuePairs()) { IndexPopulator partPopulator = Select(entry.Key); partPopulator.Add(entry.Value); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void addUpdate(org.neo4j.kernel.api.index.IndexPopulator populator, long nodeId, Object value) throws java.io.IOException, org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException private void AddUpdate(IndexPopulator populator, long nodeId, object value) { populator.Add(singletonList(IndexQueryHelper.add(nodeId, _index.schema(), value))); }