Lucene.Net.Index.BufferedUpdates.Any C# (CSharp) Метод

Any() приватный Метод

private Any ( ) : bool
Результат bool
        internal virtual bool Any()
        {
            return Terms.Count > 0 || DocIDs.Count > 0 || Queries.Count > 0 || NumericUpdates.Count > 0 || BinaryUpdates.Count > 0;
        }
    }

Usage Example

 internal bool AnyChanges()
 {
     globalBufferLock.@Lock();
     try
     {
         /*
          * check if all items in the global slice were applied
          * and if the global slice is up-to-date
          * and if globalBufferedUpdates has changes
          */
         return(globalBufferedUpdates.Any() || !globalSlice.IsEmpty || globalSlice.sliceTail != tail || tail.next != null);
     }
     finally
     {
         globalBufferLock.Unlock();
     }
 }
All Usage Examples Of Lucene.Net.Index.BufferedUpdates::Any