Lucene.Net.Store.RAMDirectory.Dispose C# (CSharp) Method

Dispose() protected method

Closes the store to future operations, releasing associated memory.
protected Dispose ( bool disposing ) : void
disposing bool
return void
        protected override void Dispose(bool disposing)
        {
            isOpen = false;
            fileMap = null;
        }

Usage Example

コード例 #1
0
ファイル: TestRAMDirectory.cs プロジェクト: segovia/lucenenet
        public virtual void TestIllegalEOF()
        {
            RAMDirectory dir = new RAMDirectory();
            IndexOutput  o   = dir.CreateOutput("out", NewIOContext(Random));
            var          b   = new byte[1024];

            o.WriteBytes(b, 0, 1024);
            o.Dispose();
            IndexInput i = dir.OpenInput("out", NewIOContext(Random));

            i.Seek(1024);
            i.Dispose();
            dir.Dispose();
        }
All Usage Examples Of Lucene.Net.Store.RAMDirectory::Dispose