Any() private method

private Any ( ) : bool
return bool
コード例 #1
0
 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;
 }
コード例 #4
0
 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;
 }