storeCursor.init( nodeReference, reference ); initFiltering( FilterState.NONE, false ); break; storeCursor.init( nodeReference, clearEncoding( reference ) ); initFiltering( FilterState.NOT_INITIALIZED, false ); break; storeCursor.init( nodeReference, clearEncoding( reference ) ); initFiltering( FilterState.NOT_INITIALIZED, true ); break; storeCursor.init( nodeReference, NO_ID ); initFiltering( FilterState.fromRelationshipDirection( OUTGOING ), false ); this.filterType = (int) clearEncoding( reference ); storeCursor.init( nodeReference, NO_ID ); initFiltering( FilterState.fromRelationshipDirection( INCOMING ), false ); this.filterType = (int) clearEncoding( reference ); storeCursor.init( nodeReference, NO_ID ); initFiltering( FilterState.fromRelationshipDirection( LOOP ), false ); this.filterType = (int) clearEncoding( reference );
BatchRelationshipIterable( RecordStorageReader storageReader, long nodeId ) { relationshipCursor = storageReader.allocateRelationshipTraversalCursor(); RecordNodeCursor nodeCursor = storageReader.allocateNodeCursor(); nodeCursor.single( nodeId ); if ( !nodeCursor.next() ) { throw new NotFoundException( "Node " + nodeId + " not found" ); } relationshipCursor.init( nodeId, nodeCursor.allRelationshipsReference() ); }
private StorageRelationshipTraversalCursor allocateRelationshipTraversalCursor( StorageNodeCursor node ) { StorageRelationshipTraversalCursor relationships = storageReader.allocateRelationshipTraversalCursor(); relationships.init( node.entityReference(), node.allRelationshipsReference() ); return relationships; }
storeCursor.init( nodeReference, reference ); initFiltering( FilterState.NONE, false ); break; storeCursor.init( nodeReference, clearEncoding( reference ) ); initFiltering( FilterState.NOT_INITIALIZED, false ); break; storeCursor.init( nodeReference, clearEncoding( reference ) ); initFiltering( FilterState.NOT_INITIALIZED, true ); break; storeCursor.init( nodeReference, NO_ID ); initFiltering( FilterState.fromRelationshipDirection( OUTGOING ), false ); this.filterType = (int) clearEncoding( reference ); storeCursor.init( nodeReference, NO_ID ); initFiltering( FilterState.fromRelationshipDirection( INCOMING ), false ); this.filterType = (int) clearEncoding( reference ); storeCursor.init( nodeReference, NO_ID ); initFiltering( FilterState.fromRelationshipDirection( LOOP ), false ); this.filterType = (int) clearEncoding( reference );
BatchRelationshipIterable( RecordStorageReader storageReader, long nodeId ) { relationshipCursor = storageReader.allocateRelationshipTraversalCursor(); RecordNodeCursor nodeCursor = storageReader.allocateNodeCursor(); nodeCursor.single( nodeId ); if ( !nodeCursor.next() ) { throw new NotFoundException( "Node " + nodeId + " not found" ); } relationshipCursor.init( nodeId, nodeCursor.allRelationshipsReference() ); }