Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
because it clashes conceptually with the per-type import. This means that migration, when store files actually needs to be migrated will break any legacy relationship indexes. This will have to be communicated with a warning during migration and in the manual optimally.
- Loading branch information
Showing
31 changed files
with
162 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
community/kernel/src/main/java/org/neo4j/unsafe/impl/batchimport/ReadNodeRecordsStep.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 0 additions & 72 deletions
72
...src/main/java/org/neo4j/unsafe/impl/batchimport/ReadRelationshipRecordsBackwardsStep.java
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
community/kernel/src/main/java/org/neo4j/unsafe/impl/batchimport/RecordIdIteration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.neo4j.unsafe.impl.batchimport; | ||
|
||
import org.neo4j.collection.primitive.PrimitiveLongCollections; | ||
import org.neo4j.collection.primitive.PrimitiveLongIterator; | ||
import org.neo4j.kernel.impl.store.RecordStore; | ||
import org.neo4j.kernel.impl.store.record.AbstractBaseRecord; | ||
|
||
public class RecordIdIteration | ||
{ | ||
public static final PrimitiveLongIterator backwards( long highExcluded, long lowIncluded ) | ||
{ | ||
return new PrimitiveLongCollections.PrimitiveLongBaseIterator() | ||
{ | ||
private long next = highExcluded - 1; | ||
|
||
@Override | ||
protected boolean fetchNext() | ||
{ | ||
return next >= lowIncluded ? next( next-- ) : false; | ||
} | ||
}; | ||
} | ||
|
||
public static final PrimitiveLongIterator forwards( long lowIncluded, long highExcluded ) | ||
{ | ||
return new PrimitiveLongCollections.PrimitiveLongBaseIterator() | ||
{ | ||
private long nextId = lowIncluded; | ||
|
||
@Override | ||
protected boolean fetchNext() | ||
{ | ||
return nextId < highExcluded ? next( nextId++ ) : false; | ||
} | ||
}; | ||
} | ||
|
||
public static PrimitiveLongIterator allIn( RecordStore<? extends AbstractBaseRecord> store ) | ||
{ | ||
return forwards( store.getNumberOfReservedLowIds(), store.getHighId() ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.