Skip to content

Commit

Permalink
Acquire AllRelationshiCursor in the StorageLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegrohmann committed May 8, 2017
1 parent 2caa415 commit 59fd133
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Expand Up @@ -185,7 +185,7 @@ private Cursor<RelationshipItem> relationshipCursor( KernelStatement statement,
public Cursor<RelationshipItem> relationshipCursorGetAll( KernelStatement statement )
{
ReadableTransactionState state = statement.hasTxStateWithChanges() ? statement.txState() : null;
return statement.getStoreStatement().relationshipsGetAllCursor( state );
return storeLayer.relationshipsGetAllCursor( statement.getStoreStatement(), state );
}

@Override
Expand Down
Expand Up @@ -416,6 +416,13 @@ public Cursor<RelationshipItem> relationshipCursor( StorageStatement statement,
return statement.acquireSingleRelationshipCursor( relationshipId, state );
}

@Override
public Cursor<RelationshipItem> relationshipsGetAllCursor( StorageStatement statement,
ReadableTransactionState state )
{
return statement.relationshipsGetAllCursor( state );
}

@Override
public Cursor<RelationshipItem> nodeGetRelationships( StorageStatement statement, NodeItem nodeItem,
Direction direction, ReadableTransactionState state )
Expand Down
Expand Up @@ -275,6 +275,8 @@ <EXCEPTION extends Exception> void relationshipVisit( long relationshipId,
Cursor<RelationshipItem> relationshipCursor( StorageStatement storeStatement, long relationshipId,
ReadableTransactionState state );

Cursor<RelationshipItem> relationshipsGetAllCursor( StorageStatement storeStatement, ReadableTransactionState state );

Cursor<RelationshipItem> nodeGetRelationships( StorageStatement statement, NodeItem nodeItem, Direction direction,
ReadableTransactionState state );

Expand Down

0 comments on commit 59fd133

Please sign in to comment.