protected internal IndexProvider(IndexProviderDescriptor descriptor, IndexDirectoryStructure.Factory directoryStructureFactory) { this._directoryStructureFactory = directoryStructureFactory; Debug.Assert(descriptor != null); this._providerDescriptor = descriptor; this._directoryStructure = directoryStructureFactory.ForProvider(descriptor); }
internal GenericNativeIndexProvider(IndexDirectoryStructure.Factory directoryStructureFactory, PageCache pageCache, FileSystemAbstraction fs, Monitor monitor, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, bool readOnly, Config config) : base(Descriptor, directoryStructureFactory, pageCache, fs, monitor, recoveryCleanupWorkCollector, readOnly) { this._configuredSettings = new ConfiguredSpaceFillingCurveSettingsCache(config); this._configuration = getConfiguredSpaceFillingCurveConfiguration(config); this._archiveFailedIndex = config.Get(GraphDatabaseSettings.archive_failed_index); this._dropAction = new FileSystemIndexDropAction(fs, directoryStructure()); }
public TemporalIndexProvider(PageCache pageCache, FileSystemAbstraction fs, IndexDirectoryStructure.Factory directoryStructure, Monitor monitor, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, bool readOnly) : base(_temporalProviderDescriptor, directoryStructure) { this._pageCache = pageCache; this._fs = fs; this._monitor = monitor; this._recoveryCleanupWorkCollector = recoveryCleanupWorkCollector; this._readOnly = readOnly; }
public SpatialIndexProvider(PageCache pageCache, FileSystemAbstraction fs, IndexDirectoryStructure.Factory directoryStructure, Monitor monitor, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, bool readOnly, Config config) : base(_spatialProviderDescriptor, directoryStructure) { this._pageCache = pageCache; this._fs = fs; this._monitor = monitor; this._recoveryCleanupWorkCollector = recoveryCleanupWorkCollector; this._readOnly = readOnly; this._configuration = SpaceFillingCurveSettingsFactory.getConfiguredSpaceFillingCurveConfiguration(config); this._configuredSettings = GetConfiguredSpaceFillingCurveSettings(config); }
public static FusionIndexProvider NewInstance(PageCache pageCache, File databaseDirectory, FileSystemAbstraction fs, IndexProvider.Monitor monitor, Config config, OperationalMode operationalMode, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector) { bool readOnly = IndexProviderFactoryUtil.IsReadOnly(config, operationalMode); bool archiveFailedIndex = config.Get(GraphDatabaseSettings.archive_failed_index); IndexDirectoryStructure.Factory luceneDirStructure = directoriesByProviderKey(databaseDirectory); IndexDirectoryStructure.Factory childDirectoryStructure = SubProviderDirectoryStructure(databaseDirectory); LuceneIndexProvider lucene = IndexProviderFactoryUtil.LuceneProvider(fs, luceneDirStructure, monitor, config, operationalMode); TemporalIndexProvider temporal = IndexProviderFactoryUtil.TemporalProvider(pageCache, fs, childDirectoryStructure, monitor, recoveryCleanupWorkCollector, readOnly); SpatialIndexProvider spatial = IndexProviderFactoryUtil.SpatialProvider(pageCache, fs, childDirectoryStructure, monitor, recoveryCleanupWorkCollector, readOnly, config); return(new FusionIndexProvider(EMPTY, EMPTY, spatial, temporal, lucene, new FusionSlotSelector00(), ProviderDescriptor, directoriesByProvider(databaseDirectory), fs, archiveFailedIndex)); }
internal FulltextIndexProvider(IndexProviderDescriptor descriptor, IndexDirectoryStructure.Factory directoryStructureFactory, FileSystemAbstraction fileSystem, Config config, TokenHolders tokenHolders, DirectoryFactory directoryFactory, OperationalMode operationalMode, JobScheduler scheduler, AuxiliaryTransactionStateManager auxiliaryTransactionStateManager, Log log) : base(descriptor, directoryStructureFactory) { this._fileSystem = fileSystem; this._config = config; this._tokenHolders = tokenHolders; this._operationalMode = operationalMode; this._auxiliaryTransactionStateManager = auxiliaryTransactionStateManager; this._log = log; _defaultAnalyzerName = config.Get(FulltextConfig.FulltextDefaultAnalyzer); _defaultEventuallyConsistentSetting = Convert.ToString(config.Get(FulltextConfig.EventuallyConsistent)); _indexUpdateSink = new IndexUpdateSink(scheduler, config.Get(FulltextConfig.EventuallyConsistentIndexUpdateQueueMaxLength)); _openOnlineAccessors = new ConcurrentDictionary <StoreIndexDescriptor, FulltextIndexAccessor>(); _indexStorageFactory = BuildIndexStorageFactory(fileSystem, directoryFactory); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() public virtual void Setup() { DefaultFileSystemAbstraction fs = this._fs.get(); PageCache pc = _pageCacheRule.getPageCache(fs); File file = _directory.file("index"); GenericLayout layout = new GenericLayout(1, _indexSettings); RecoveryCleanupWorkCollector collector = RecoveryCleanupWorkCollector.ignore(); _descriptor = TestIndexDescriptorFactory.forLabel(1, 1).withId(1); IndexDirectoryStructure.Factory factory = IndexDirectoryStructure.directoriesByProvider(_directory.storeDir()); IndexDirectoryStructure structure = factory.ForProvider(GenericNativeIndexProvider.Descriptor); IndexDropAction dropAction = new FileSystemIndexDropAction(fs, structure); _accessor = new GenericNativeIndexAccessor(pc, fs, file, layout, collector, EMPTY, _descriptor, _indexSettings, new StandardConfiguration(), dropAction, false); }
public FusionIndexProvider(IndexProvider stringProvider, IndexProvider numberProvider, IndexProvider spatialProvider, IndexProvider temporalProvider, IndexProvider luceneProvider, SlotSelector slotSelector, IndexProviderDescriptor descriptor, IndexDirectoryStructure.Factory directoryStructure, FileSystemAbstraction fs, bool archiveFailedIndex) : base(descriptor, directoryStructure) { this._archiveFailedIndex = archiveFailedIndex; this._slotSelector = slotSelector; this._providers = new InstanceSelector <IndexProvider>(); this._dropAction = new FileSystemIndexDropAction(fs, directoryStructure()); FillProvidersSelector(stringProvider, numberProvider, spatialProvider, temporalProvider, luceneProvider); slotSelector.ValidateSatisfied(_providers); }
internal abstract IndexProvider NewProvider(PageCache pageCache, FileSystemAbstraction fs, IndexDirectoryStructure.Factory dir, IndexProvider.Monitor monitor, RecoveryCleanupWorkCollector collector, bool readOnly);
public AdaptorAnonymousInnerClass(LuceneIndexSamplerReleaseTaskControlUnderFusion outerInstance, IndexProviderDescriptor providerDescriptor, IndexDirectoryStructure.Factory directoryFactory) : base(providerDescriptor, directoryFactory) { this.outerInstance = outerInstance; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() public virtual void Setup() { _directoryFactory = defaultDirectoryStructure(Dir.storeDir()); }
protected internal Adaptor(IndexProviderDescriptor descriptor, IndexDirectoryStructure.Factory directoryStructureFactory) : base(descriptor, directoryStructureFactory) { }