Пример #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean next(org.neo4j.unsafe.impl.batchimport.input.InputEntityVisitor visitor) throws java.io.IOException
            public override bool Next(InputEntityVisitor visitor)
            {
                if (ItemInBatch < Count)
                {
                    outerInstance.generator.Accept(State, visitor, BaseId + ItemInBatch);
                    visitor.EndOfEntity();
                    ItemInBatch++;
                    return(true);
                }
                return(false);
            }
Пример #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean next(org.neo4j.unsafe.impl.batchimport.input.InputEntityVisitor visitor) throws java.io.IOException
        public override bool Next(InputEntityVisitor visitor)
        {
            if (_id < _endId)
            {
                Read(Cursor, _id);
                if (Cursor.next())
                {
                    VisitRecord(Cursor, visitor);
                    visitor.EndOfEntity();
                }
                _id++;
                return(true);
            }
            return(false);
        }