Lucene.Net.Store.RAMDirectory.Dispose C# (CSharp) Метод

Dispose() защищенный Метод

Closes the store to future operations, releasing associated memory.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void
        protected override void Dispose(bool disposing)
        {
            isOpen = false;
            fileMap = null;
        }

Usage Example

Пример #1
0
        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