internal NativeIndexReader(GBPTree <KEY, VALUE> tree, IndexLayout <KEY, VALUE> layout, IndexDescriptor descriptor) { this.Tree = tree; this.Layout = layout; this.Descriptor = descriptor; this.OpenSeekers = new HashSet <RawCursor <Hit <KEY, VALUE>, IOException> >(); }
internal PartAccessor(PageCache pageCache, FileSystemAbstraction fs, SpatialIndexFiles.SpatialFileLayout fileLayout, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, SpaceFillingCurveConfiguration searchConfiguration, bool readOnly) : base(pageCache, fs, fileLayout.IndexFile, fileLayout.Layout, monitor, descriptor, NO_HEADER_WRITER, readOnly) { this.Layout = fileLayout.Layout; this.Descriptor = descriptor; this.SearchConfiguration = searchConfiguration; this.Crs = fileLayout.SpatialFile.crs; this.Settings = fileLayout.Settings; instantiateTree(recoveryCleanupWorkCollector, HeaderWriter); }
internal NativeIndex(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <KEY, VALUE> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, bool readOnly) { this.PageCache = pageCache; this.StoreFile = storeFile; this.Layout = layout; this.FileSystem = fs; this.Descriptor = descriptor; this._monitor = monitor; this._readOnly = readOnly; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void Setup() { ValueCreatorUtil = CreateValueCreatorUtil(); IndexDescriptor = ValueCreatorUtil.indexDescriptor(); Layout = CreateLayout(); IndexDirectoryStructure = directoriesByProvider(_directory.directory("root")).forProvider(IndexDescriptor.providerDescriptor()); _indexFile = IndexDirectoryStructure.directoryForIndex(IndexDescriptor.Id); Fs.mkdirs(_indexFile.ParentFile); PageCache = _pageCacheRule.getPageCache(Fs); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: static void verify(org.neo4j.storageengine.api.NodePropertyAccessor nodePropertyAccessor, IndexLayout<SpatialIndexKey,NativeIndexValue> layout, org.neo4j.index.internal.gbptree.GBPTree<SpatialIndexKey,NativeIndexValue> tree, org.neo4j.storageengine.api.schema.StoreIndexDescriptor descriptor) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException internal static void Verify(NodePropertyAccessor nodePropertyAccessor, IndexLayout <SpatialIndexKey, NativeIndexValue> layout, GBPTree <SpatialIndexKey, NativeIndexValue> tree, StoreIndexDescriptor descriptor) { SpatialIndexKey from = layout.newKey(); SpatialIndexKey to = layout.newKey(); InitializeKeys(from, to); try { using (RawCursor <Hit <SpatialIndexKey, NativeIndexValue>, IOException> seek = tree.Seek(from, to)) { ScanAndVerifyDuplicates(nodePropertyAccessor, descriptor, seek); } } catch (IOException e) { throw new UncheckedIOException(e); } }
internal StringIndexPopulator(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <StringIndexKey, NativeIndexValue> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor) : base(pageCache, fs, storeFile, layout, monitor, descriptor, NO_HEADER_WRITER) { }
internal PropertyLookupFallbackComparator(IndexLayout <KEY, VALUE> schemaLayout, NodePropertyAccessor propertyAccessor, int propertyKeyId) { this._schemaLayout = schemaLayout; this._propertyAccessor = propertyAccessor; this._propertyKeyId = propertyKeyId; }
internal StringIndexAccessor(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <StringIndexKey, NativeIndexValue> layout, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, bool readOnly) : base(pageCache, fs, storeFile, layout, monitor, descriptor, NO_HEADER_WRITER, readOnly) { instantiateTree(recoveryCleanupWorkCollector, HeaderWriter); }
internal NativeDistinctValuesProgressor(RawCursor <Hit <KEY, VALUE>, IOException> seeker, Org.Neo4j.Storageengine.Api.schema.IndexProgressor_NodeValueClient client, ICollection <RawCursor <Hit <KEY, VALUE>, IOException> > toRemoveFromOnClose, IndexLayout <KEY, VALUE> layout, IComparer <KEY> comparator) : base(seeker, client, toRemoveFromOnClose) { this._layout = layout; _prev = layout.newKey(); this._comparator = comparator; }
internal GenericNativeIndexAccessor(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <GenericKey, NativeIndexValue> layout, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, IndexSpecificSpaceFillingCurveSettingsCache spaceFillingCurveSettings, SpaceFillingCurveConfiguration configuration, IndexDropAction dropAction, bool readOnly) : base(pageCache, fs, storeFile, layout, monitor, descriptor, new SpaceFillingCurveSettingsWriter(spaceFillingCurveSettings), readOnly) { this._spaceFillingCurveSettings = spaceFillingCurveSettings; this._configuration = configuration; this._dropAction = dropAction; instantiateTree(recoveryCleanupWorkCollector, HeaderWriter); }
internal TemporalIndexPartReader(GBPTree <KEY, NativeIndexValue> tree, IndexLayout <KEY, NativeIndexValue> layout, IndexDescriptor descriptor) : base(tree, layout, descriptor) { }
internal GenericNativeIndexPopulator(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <GenericKey, NativeIndexValue> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, IndexSpecificSpaceFillingCurveSettingsCache spatialSettings, IndexDirectoryStructure directoryStructure, SpaceFillingCurveConfiguration configuration, IndexDropAction dropAction, bool archiveFailedIndex) : base(pageCache, fs, storeFile, layout, monitor, descriptor, new SpaceFillingCurveSettingsWriter(spatialSettings)) { this._spatialSettings = spatialSettings; this._directoryStructure = directoryStructure; this._configuration = configuration; this._dropAction = dropAction; this._archiveFailedIndex = archiveFailedIndex; }
internal PartAccessor(PageCache pageCache, FileSystemAbstraction fs, TemporalIndexFiles.FileLayout <KEY> fileLayout, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, bool readOnly) : base(pageCache, fs, fileLayout.IndexFile, fileLayout.Layout, monitor, descriptor, NO_HEADER_WRITER, readOnly) { this.Layout = fileLayout.Layout; this.Descriptor = descriptor; instantiateTree(recoveryCleanupWorkCollector, headerWriter); }
internal FileLayout(File indexFile, IndexLayout <KEY, NativeIndexValue> layout, ValueGroup valueGroup) { this.IndexFile = indexFile; this.Layout = layout; this.ValueGroup = valueGroup; }
internal GenericBlockBasedIndexPopulator(PageCache pageCache, FileSystemAbstraction fs, File file, IndexLayout <GenericKey, NativeIndexValue> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, IndexSpecificSpaceFillingCurveSettingsCache spatialSettings, IndexDirectoryStructure directoryStructure, SpaceFillingCurveConfiguration configuration, IndexDropAction dropAction, bool archiveFailedIndex, ByteBufferFactory bufferFactory) : base(pageCache, fs, file, layout, monitor, descriptor, spatialSettings, directoryStructure, dropAction, archiveFailedIndex, bufferFactory) { this._spatialSettings = spatialSettings; this._configuration = configuration; }
internal SpatialIndexPartReader(GBPTree <SpatialIndexKey, VALUE> tree, IndexLayout <SpatialIndexKey, VALUE> layout, IndexDescriptor descriptor, SpaceFillingCurveConfiguration configuration) : base(tree, layout, descriptor) { _spatial = ( SpatialLayout )layout; this._configuration = configuration; }
internal BlockBasedIndexPopulator(PageCache pageCache, FileSystemAbstraction fs, File file, IndexLayout <KEY, VALUE> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, IndexSpecificSpaceFillingCurveSettingsCache spatialSettings, IndexDirectoryStructure directoryStructure, IndexDropAction dropAction, bool archiveFailedIndex, ByteBufferFactory bufferFactory, int mergeFactor, BlockStorage.Monitor blockStorageMonitor) : base(pageCache, fs, file, layout, monitor, descriptor, new SpaceFillingCurveSettingsWriter(spatialSettings)) { this._directoryStructure = directoryStructure; this._dropAction = dropAction; this._archiveFailedIndex = archiveFailedIndex; this._mergeFactor = mergeFactor; this._blockStorageMonitor = blockStorageMonitor; this._scanUpdates = ThreadLocal.withInitial(this.newThreadLocalBlockStorage); this._bufferFactory = bufferFactory; }
internal GenericNativeIndexReader(GBPTree <GenericKey, NativeIndexValue> tree, IndexLayout <GenericKey, NativeIndexValue> layout, IndexDescriptor descriptor, IndexSpecificSpaceFillingCurveSettingsCache spaceFillingCurveSettings, SpaceFillingCurveConfiguration configuration) : base(tree, layout, descriptor) { this._spaceFillingCurveSettings = spaceFillingCurveSettings; this._configuration = configuration; }
internal SpatialFileLayout(SpatialFile spatialFile, SpaceFillingCurveSettings settings) { this.SpatialFile = spatialFile; this.Settings = settings; this.Layout = new SpatialLayout(spatialFile.Crs, settings.Curve()); }
internal BlockBasedIndexPopulator(PageCache pageCache, FileSystemAbstraction fs, File file, IndexLayout <KEY, VALUE> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, IndexSpecificSpaceFillingCurveSettingsCache spatialSettings, IndexDirectoryStructure directoryStructure, IndexDropAction dropAction, bool archiveFailedIndex, ByteBufferFactory bufferFactory) : this(pageCache, fs, file, layout, monitor, descriptor, spatialSettings, directoryStructure, dropAction, archiveFailedIndex, bufferFactory, FeatureToggles.getInteger(typeof(BlockBasedIndexPopulator), "mergeFactor", 8), NO_MONITOR) { }
internal NativeIndexPopulator(PageCache pageCache, FileSystemAbstraction fs, File storeFile, IndexLayout <KEY, VALUE> layout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, System.Action <PageCursor> additionalHeaderWriter) : base(pageCache, fs, storeFile, layout, monitor, descriptor, false) { this._treeKey = layout.newKey(); this._treeValue = layout.NewValue(); this._additionalHeaderWriter = additionalHeaderWriter; switch (descriptor.Type()) { case GENERAL: _uniqueSampler = null; break; case UNIQUE: _uniqueSampler = new UniqueIndexSampler(); break; default: throw new System.ArgumentException("Unexpected index type " + descriptor.Type()); } }
internal FullScanNonUniqueIndexSampler(GBPTree <KEY, VALUE> gbpTree, IndexLayout <KEY, VALUE> layout) { this._gbpTree = gbpTree; this._layout = layout; }
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); }
internal StringIndexReader(GBPTree <StringIndexKey, NativeIndexValue> tree, IndexLayout <StringIndexKey, NativeIndexValue> layout, IndexDescriptor descriptor) : base(tree, layout, descriptor) { }