Beispiel #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);
            }
Beispiel #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);
        }
Beispiel #3
0
 internal virtual void VisitProperties(T record, InputEntityVisitor visitor)
 {
     if (!_requiresPropertyMigration)
     {
         visitor.PropertyId(record.propertiesReference());
     }
     else
     {
         StorePropertyCursor.init(record.propertiesReference());
         while (StorePropertyCursor.next())
         {
             // add key as int here as to have the importer use the token id
             visitor.Property(StorePropertyCursor.propertyKey(), StorePropertyCursor.propertyValue().asObject());
         }
         StorePropertyCursor.close();
     }
 }
Beispiel #4
0
 internal override void VisitRecord(StorageNodeCursor record, InputEntityVisitor visitor)
 {
     // empty
 }
Beispiel #5
0
 internal abstract void VisitRecord(T record, InputEntityVisitor visitor);