Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public OUT next() throws java.io.IOException
            public OUT next()
            {
                if (!hasNext())
                {
                    throw new System.InvalidOperationException();
                }
                return(_converter.apply(_items[cursor++]));
            }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean next() throws java.io.IOException
        public override bool Next()
        {
            while (_currentLogTransactionCursor == null || !_currentLogTransactionCursor.next())
            {
                // We've run out of transactions in this log version, back up to a previous one
                _currentVersion--;
                if (_currentVersion < _backToPosition.LogVersion)
                {
                    return(false);
                }

                CloseCurrent();
                LogPosition position = _currentVersion > _backToPosition.LogVersion ? start(_currentVersion) : _backToPosition;
                _currentLogTransactionCursor = _cursorFactory.apply(position);
            }
            return(true);
        }
Beispiel #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public java.net.URL validateURLAccess(java.net.URL url) throws org.neo4j.graphdb.security.URLAccessValidationError
        public override URL ValidateURLAccess(URL url)
        {
            return(_urlValidator.apply(url));
        }