コード例 #1
0
ファイル: CollectionSession.cs プロジェクト: jobs-git/resin
 public virtual void Dispose()
 {
     if (ValueStream != null)
     {
         ValueStream.Dispose();
     }
     if (KeyStream != null)
     {
         KeyStream.Dispose();
     }
     if (DocStream != null)
     {
         DocStream.Dispose();
     }
     if (ValueIndexStream != null)
     {
         ValueIndexStream.Dispose();
     }
     if (KeyIndexStream != null)
     {
         KeyIndexStream.Dispose();
     }
     if (DocIndexStream != null)
     {
         DocIndexStream.Dispose();
     }
 }
コード例 #2
0
 public void Dispose()
 {
     WritableValueStream.Dispose();
     ValueIndexStream.Dispose();
     WritableValueIndexStream.Dispose();
     WritableKeyMapStream.Dispose();
     ValueStream.Dispose();
 }
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            WritableValueStream.Dispose();
            ValueIndexStream.Dispose();
            WritableValueIndexStream.Dispose();
            WritableKeyMapStream.Dispose();
            ValueStream.Dispose();

            _disposed = true;
        }
コード例 #4
0
        public virtual void Dispose()
        {
            ValueStream.Dispose();
            KeyStream.Dispose();
            DocStream.Dispose();
            ValueIndexStream.Dispose();
            KeyIndexStream.Dispose();
            DocIndexStream.Dispose();

            if (PostingsStream != null)
            {
                PostingsStream.Dispose();
            }
            if (VectorStream != null)
            {
                VectorStream.Dispose();
            }
        }