コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void processAll(java.util.List<org.neo4j.kernel.api.index.IndexEntryUpdate<?>> updates) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
        private void ProcessAll <T1>(IList <T1> updates)
        {
            using (NativeIndexUpdater updater = _accessor.newUpdater(IndexUpdateMode.ONLINE))
            {
//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)
                {
                    //noinspection unchecked
                    updater.process(update);
                }
            }
        }
コード例 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void processUpdates(Iterable<? extends org.neo4j.kernel.api.index.IndexEntryUpdate<?>> indexEntryUpdates, ConflictDetectingValueMerger<KEY,VALUE,org.neo4j.values.storable.Value[]> conflictDetector) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
        private void ProcessUpdates <T1>(IEnumerable <T1> indexEntryUpdates, ConflictDetectingValueMerger <KEY, VALUE, Value[]> conflictDetector) where T1 : Org.Neo4j.Kernel.Api.Index.IndexEntryUpdate <T1>
        {
            try
            {
                using (Writer <KEY, VALUE> writer = tree.writer())
                {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: for (org.neo4j.kernel.api.index.IndexEntryUpdate<?> indexEntryUpdate : indexEntryUpdates)
                    foreach (IndexEntryUpdate <object> indexEntryUpdate in indexEntryUpdates)
                    {
                        NativeIndexUpdater.ProcessUpdate(_treeKey, _treeValue, indexEntryUpdate, writer, conflictDetector);
                    }
                }
            }
            catch (IOException e)
            {
                throw new UncheckedIOException(e);
            }
        }
コード例 #3
0
 internal NativeIndexAccessor(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <KEY, VALUE> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, System.Action <PageCursor> additionalHeaderWriter, bool readOnly) : base(pageCache, fs, storeFile, layout, monitor, descriptor, readOnly)
 {
     _singleUpdater = new NativeIndexUpdater <KEY, VALUE>(layout.newKey(), layout.NewValue());
     HeaderWriter   = new NativeIndexHeaderWriter(BYTE_ONLINE, additionalHeaderWriter);
 }