public override IndexAccessor getOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig) { return(mock(typeof(IndexAccessor))); }
internal TemporalIndexPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, TemporalIndexFiles temporalIndexFiles, PageCache pageCache, FileSystemAbstraction fs, IndexProvider.Monitor monitor) : base(new PartFactory(pageCache, fs, temporalIndexFiles, descriptor, samplingConfig, monitor)) { }
public override IndexPopulator getPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory) { return(new IndexPopulatorAnonymousInnerClass(this)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: TemporalIndexAccessor(org.neo4j.storageengine.api.schema.StoreIndexDescriptor descriptor, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig, org.neo4j.io.pagecache.PageCache pageCache, org.neo4j.io.fs.FileSystemAbstraction fs, org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, org.neo4j.kernel.api.index.IndexProvider.Monitor monitor, TemporalIndexFiles temporalIndexFiles, boolean readOnly) throws java.io.IOException internal TemporalIndexAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, PageCache pageCache, FileSystemAbstraction fs, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, TemporalIndexFiles temporalIndexFiles, bool readOnly) : base(new PartFactory(pageCache, fs, recoveryCleanupWorkCollector, monitor, descriptor, samplingConfig, temporalIndexFiles, readOnly)) { this._descriptor = descriptor; temporalIndexFiles.LoadExistingIndexes(this); }
internal PartFactory(PageCache pageCache, FileSystemAbstraction fs, TemporalIndexFiles temporalIndexFiles, StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, IndexProvider.Monitor monitor) { this.PageCache = pageCache; this.Fs = fs; this.TemporalIndexFiles = temporalIndexFiles; this.Descriptor = descriptor; this.SamplingConfig = samplingConfig; this.Monitor = monitor; }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.kernel.api.index.IndexAccessor getOnlineAccessor(org.neo4j.storageengine.api.schema.StoreIndexDescriptor descriptor, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig) throws java.io.IOException public override IndexAccessor GetOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig) { Dictionary <IndexSlot, IndexAccessor> accessors = _providers.map(provider => provider.getOnlineAccessor(descriptor, samplingConfig)); return(new FusionIndexAccessor(_slotSelector, new InstanceSelector <IndexAccessor>(accessors), descriptor, _dropAction)); }
internal PartFactory(PageCache pageCache, FileSystemAbstraction fs, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, TemporalIndexFiles temporalIndexFiles, bool readOnly) { this.PageCache = pageCache; this.Fs = fs; this.RecoveryCleanupWorkCollector = recoveryCleanupWorkCollector; this.Monitor = monitor; this.Descriptor = descriptor; this.SamplingConfig = samplingConfig; this.TemporalIndexFiles = temporalIndexFiles; this.ReadOnly = readOnly; }
public override IndexAccessor getOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig) { return(outerInstance.failingIndexAccessor()); }
public override IndexPopulator GetPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory) { Dictionary <IndexSlot, IndexPopulator> populators = _providers.map(provider => provider.getPopulator(descriptor, samplingConfig, bufferFactory)); return(new FusionIndexPopulator(_slotSelector, new InstanceSelector <IndexPopulator>(populators), descriptor.Id, _dropAction, _archiveFailedIndex)); }
public override IndexAccessor GetOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig) { return(null); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.kernel.api.index.IndexAccessor getOnlineAccessor(org.neo4j.storageengine.api.schema.StoreIndexDescriptor descriptor, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig) throws java.io.IOException public override IndexAccessor GetOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig) { File storeFile = NativeIndexFileFromIndexId(descriptor.Id); return(NewIndexAccessor(storeFile, Layout(descriptor, storeFile), descriptor, ReadOnly)); }
public override IndexPopulator GetPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory) { return(null); }
/// <summary> /// Used for updating an index once initial population has completed. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public abstract IndexAccessor getOnlineAccessor(org.neo4j.storageengine.api.schema.StoreIndexDescriptor descriptor, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig) throws java.io.IOException; public abstract IndexAccessor GetOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig);
/// <summary> /// Used for initially populating a created index, using batch insertion. /// </summary> public abstract IndexPopulator GetPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory);
public override IndexAccessor getOnlineAccessor(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig) { return(singleWriter); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public IndexAccessors(org.neo4j.kernel.impl.api.index.IndexProviderMap providers, org.neo4j.kernel.impl.store.RecordStore<org.neo4j.kernel.impl.store.record.DynamicRecord> schemaStore, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig) throws java.io.IOException public IndexAccessors(IndexProviderMap providers, RecordStore <DynamicRecord> schemaStore, IndexSamplingConfig samplingConfig) { IEnumerator <StoreIndexDescriptor> indexes = (new SchemaStorage(schemaStore)).indexesGetAll(); for ( ; ;) { try { //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: if (indexes.hasNext()) { // we intentionally only check indexes that are online since // - populating indexes will be rebuilt on next startup // - failed indexes have to be dropped by the user anyways //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: StoreIndexDescriptor indexDescriptor = indexes.next(); if (indexDescriptor.IndexWithoutOwningConstraint) { _notOnlineIndexRules.Add(indexDescriptor); } else { if (InternalIndexState.ONLINE == Provider(providers, indexDescriptor).getInitialState(indexDescriptor)) { _onlineIndexRules.Add(indexDescriptor); } else { _notOnlineIndexRules.Add(indexDescriptor); } } } else { break; } } catch (Exception) { // ignore; inconsistencies of the schema store are specifically handled elsewhere. } } foreach (StoreIndexDescriptor indexRule in _onlineIndexRules) { long indexId = indexRule.Id; _accessors.put(indexId, Provider(providers, indexRule).getOnlineAccessor(indexRule, samplingConfig)); } }