Пример #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private WritableTestDatabaseIndex createTestLuceneIndex(org.neo4j.kernel.api.impl.index.storage.DirectoryFactory dirFactory, java.io.File folder) throws java.io.IOException
        private WritableTestDatabaseIndex CreateTestLuceneIndex(DirectoryFactory dirFactory, File folder)
        {
            PartitionedIndexStorage   indexStorage = new PartitionedIndexStorage(dirFactory, _fileSystem, folder);
            WritableTestDatabaseIndex index        = new WritableTestDatabaseIndex(indexStorage);

            index.Create();
            index.open();
            return(index);
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeEach void setUp() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void SetUp()
        {
            _directoryFactory = new SyncNotifierDirectoryFactory(_raceSignal);
            _luceneIndex      = CreateTestLuceneIndex(_directoryFactory, _testDirectory.directory());
        }