@Override public PrimitiveLongResourceIterator nodesWithLabel( int labelId ) { RawCursor<Hit<LabelScanKey,LabelScanValue>,IOException> cursor; try { cursor = seekerForLabel( 0, labelId ); openCursors.add( cursor ); } catch ( IOException e ) { throw new UncheckedIOException( e ); } return new LabelScanValueIterator( cursor, openCursors, NO_ID ); }
private List<PrimitiveLongResourceIterator> iteratorsForLabels( long fromId, int[] labelIds ) { List<PrimitiveLongResourceIterator> iterators = new ArrayList<>(); try { for ( int labelId : labelIds ) { RawCursor<Hit<LabelScanKey,LabelScanValue>,IOException> cursor = seekerForLabel( fromId, labelId ); openCursors.add( cursor ); iterators.add( new LabelScanValueIterator( cursor, openCursors, fromId ) ); } } catch ( IOException e ) { throw new UncheckedIOException( e ); } return iterators; }
@Override public void nodesWithLabel( IndexProgressor.NodeLabelClient client, int labelId ) { RawCursor<Hit<LabelScanKey,LabelScanValue>,IOException> cursor; try { cursor = seekerForLabel( 0, labelId ); openCursors.add( cursor ); } catch ( IOException e ) { throw new UncheckedIOException( e ); } client.scan( new LabelScanValueIndexProgressor( cursor, openCursors, client ), false, labelId ); }
@Override public PrimitiveLongResourceIterator nodesWithLabel( int labelId ) { RawCursor<Hit<LabelScanKey,LabelScanValue>,IOException> cursor; try { cursor = seekerForLabel( 0, labelId ); openCursors.add( cursor ); } catch ( IOException e ) { throw new UncheckedIOException( e ); } return new LabelScanValueIterator( cursor, openCursors, NO_ID ); }
private List<PrimitiveLongResourceIterator> iteratorsForLabels( long fromId, int[] labelIds ) { List<PrimitiveLongResourceIterator> iterators = new ArrayList<>(); try { for ( int labelId : labelIds ) { RawCursor<Hit<LabelScanKey,LabelScanValue>,IOException> cursor = seekerForLabel( fromId, labelId ); openCursors.add( cursor ); iterators.add( new LabelScanValueIterator( cursor, openCursors, fromId ) ); } } catch ( IOException e ) { throw new UncheckedIOException( e ); } return iterators; }
@Override public void nodesWithLabel( IndexProgressor.NodeLabelClient client, int labelId ) { RawCursor<Hit<LabelScanKey,LabelScanValue>,IOException> cursor; try { cursor = seekerForLabel( 0, labelId ); openCursors.add( cursor ); } catch ( IOException e ) { throw new UncheckedIOException( e ); } client.scan( new LabelScanValueIndexProgressor( cursor, openCursors, client ), false, labelId ); }