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

private Any ( ) : bool
Результат bool
 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();
     }
 }
Пример #2
0
 public 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.Empty || GlobalSlice.SliceTail != Tail || Tail.Next != null);
     }
     finally
     {
         GlobalBufferLock.Unlock();
     }
 }
Пример #3
0
 internal FlushedSegment(SegmentCommitInfo segmentInfo, FieldInfos fieldInfos, BufferedUpdates segmentUpdates, IMutableBits liveDocs, int delCount)
 {
     this.segmentInfo    = segmentInfo;
     this.fieldInfos     = fieldInfos;
     this.segmentUpdates = segmentUpdates != null && segmentUpdates.Any() ? new FrozenBufferedUpdates(segmentUpdates, true) : null;
     this.liveDocs       = liveDocs;
     this.delCount       = delCount;
 }
 internal FlushedSegment(SegmentCommitInfo segmentInfo, FieldInfos fieldInfos, BufferedUpdates segmentUpdates, MutableBits liveDocs, int delCount)
 {
     this.SegmentInfo = segmentInfo;
     this.FieldInfos = fieldInfos;
     this.SegmentUpdates = segmentUpdates != null && segmentUpdates.Any() ? new FrozenBufferedUpdates(segmentUpdates, true) : null;
     this.LiveDocs = liveDocs;
     this.DelCount = delCount;
 }