Beispiel #1
0
 /// <summary> Closes the underlying {@link Lucene.Net.Store.IndexInput} streams, including any ones associated with a
 /// lazy implementation of a Field.  This means that the Fields values will not be accessible.
 ///
 /// </summary>
 /// <throws>  IOException </throws>
 public /*internal*/ void  Close()
 {
     if (!closed)
     {
         if (fieldsStream != null)
         {
             fieldsStream.Close();
         }
         if (isOriginal)
         {
             if (cloneableFieldsStream != null)
             {
                 cloneableFieldsStream.Close();
             }
             if (cloneableIndexStream != null)
             {
                 cloneableIndexStream.Close();
             }
         }
         if (indexStream != null)
         {
             indexStream.Close();
         }
         fieldsStreamTL.Close();
         closed = true;
     }
 }
Beispiel #2
0
 internal void  Close()
 {
     if (origEnum != null)
     {
         origEnum.Close();
     }
     threadResources.Close();
 }
 public void  Close()
 {
     if (origEnum != null)
     {
         origEnum.Close();
     }
     if (indexEnum != null)
     {
         indexEnum.Close();
     }
     threadResources.Close();
 }
 public void foo()
 {
     //termVectorsLocal.Clear();
     termVectorsLocal.Close();
 }
Beispiel #5
0
 /// <summary>Frees persistent resources used by this Analyzer </summary>
 public virtual void  Close()
 {
     tokenStreams.Close();
     tokenStreams = null;
 }