コード例 #1
0
 public override bool Next()
 {
     while (_ids.hasNext())
     {
         if (_client.acceptNode(_ids.next(), (Value[])null))
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
 public override bool Next()
 {
     while (_iterator.hasNext())
     {
         if (_client.acceptNode(_iterator.next(), null))
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #3
0
 protected internal override bool fetchNext()
 {
     if (_mainResult.hasNext())
     {
         long mainValue = _mainResult.next();
         if (!_otherResult.hasNext())
         {
             throw new System.InvalidOperationException(format("Legacy query method returned %d, but new query method didn't have more values in it", mainValue));
         }
         long otherValue = _otherResult.next();
         if (mainValue != otherValue)
         {
             throw new System.InvalidOperationException(format("Query methods disagreeing on next value legacy:%d new:%d", mainValue, otherValue));
         }
         return(next(mainValue));
     }
     else if (_otherResult.hasNext())
     {
         throw new System.InvalidOperationException(format("Legacy query method exhausted, but new query method had more %d", _otherResult.next()));
     }
     return(false);
 }
コード例 #4
0
 public override bool HasNext()
 {
     return(_idIterator.hasNext());
 }