Toggle navigation
Home
org.neo4j.collection.primitive.PrimitiveLongIterator to org.neo4j.kernel.impl.api.store.RelationshipIterator
No. of Instances - 53
No. of Commits - 2
No. of Projects - {'neo4j'}
Hierarchy/Composition: T_SUPER_R
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Cascading Type Change (Similar)
PrimitiveLongBaseIterator
to
RelationshipIterator.BaseIterator
Update Anonymous class
{ private final RelationshipStore store=neoStore.getRelationshipStore(); private long highId=store.getHighestPossibleIdInUse(); private long currentId; private final RelationshipRecord reusableRecord=new RelationshipRecord(-1); @Override protected boolean fetchNext(){ while (true) { while (currentId <= highId) { try { if (store.fillRecord(currentId,reusableRecord,CHECK) && reusableRecord.inUse()) { return next(reusableRecord.getId()); } } finally { currentId++; } } long newHighId=store.getHighestPossibleIdInUse(); if (newHighId > highId) { highId=newHighId; } else { break; } } return false; } }
to
{ private final RelationshipStore store=neoStore.getRelationshipStore(); private long highId=store.getHighestPossibleIdInUse(); private long currentId; private final RelationshipRecord reusableRecord=new RelationshipRecord(-1); @Override protected boolean fetchNext(){ while (true) { while (currentId <= highId) { try { if (store.fillRecord(currentId,reusableRecord,CHECK) && reusableRecord.inUse()) { return next(reusableRecord.getId()); } } finally { currentId++; } } long newHighId=store.getHighestPossibleIdInUse(); if (newHighId > highId) { highId=newHighId; } else { break; } } return false; } @Override public <EXCEPTION extends Exception>boolean relationshipVisit( long relationshipId, RelationshipVisitor<EXCEPTION> visitor) throws EXCEPTION { visitor.visit(relationshipId,reusableRecord.getType(),reusableRecord.getFirstNode(),reusableRecord.getSecondNode()); return false; } }
Add or Remove Method invocation
PrimitiveLongCollections.emptyIterator()
to
RelationshipIterator.EMPTY
emptyIterator()
to
RelationshipIterator.EMPTY
PrimitiveLongCollections.emptyIterator()
to
RelationshipIterator.EMPTY
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(incoming))
to
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(incoming),relationshipHome)
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(outgoing))
to
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(outgoing),relationshipHome)
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(outgoing))
to
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(outgoing),relationshipHome)
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(incoming))
to
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(incoming),relationshipHome)
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(loops))
to
diffStrategy.augmentPrimitiveIterator(rels,typeFilter.apply(loops),relationshipHome)