/** * Create a StoreIndexDescriptor, which represent the commit version of this index. * * @param id the index id of the committed index * @return a StoreIndexDescriptor */ public StoreIndexDescriptor withId( long id ) { assertValidId( id, "id" ); return new StoreIndexDescriptor( this, id ); }
@Override public IndexSample sampleResult() { return new IndexSample(); }
void close() { if ( progressor != null ) { progressor.close(); } progressor = null; }
@Override public void query( IndexProgressor.NodeValueClient client, IndexOrder indexOrder, boolean needsValues, IndexQuery... query ) throws IndexNotApplicableKernelException { delegate.query( client, indexOrder, needsValues, query ); }
@Override public IndexSampler createSampler() { return actual.createSampler(); }
@Override public boolean hasFullValuePrecision( IndexQuery... predicates ) { return actual.hasFullValuePrecision( predicates ); }
/** * @param fromId entity id to start at, exclusive, i.e. the given {@code fromId} will not be included in the result. * @param labelIds label token ids. * @return node ids with any of the given label ids. */ PrimitiveLongResourceIterator nodesWithAnyOfLabels( long fromId, int[] labelIds );
@Override public PopulationProgress getProgress() { if ( totalCount > 0 ) { return new PopulationProgress( count, totalCount ); } // nothing to do 100% completed return PopulationProgress.DONE; }
public boolean next() { if ( progressor.next() ) { return true; } closeProgressor(); return false; }
@Override public boolean needsValues() { return client.needsValues(); }
@Override public void close() { labelScanReader.close(); }
@Override public boolean next() { return progressor.next(); }
@Override public String toString() { return "Index[ " + indexRule.toString() + " ]"; } }
public IndexSample result() { return new IndexSample( count, count, count ); } }
@Override public PrimitiveLongResourceIterator query( IndexQuery... predicates ) throws IndexNotApplicableKernelException { return delegate.query( predicates ); }
LabelScanViewIdIterator( LabelScanReader labelScanReader, int[] labelIds, CURSOR entityCursor ) { this.labelScanReader = labelScanReader; this.entityCursor = entityCursor; this.idIterator = labelScanReader.nodesWithAnyOfLabels( labelIds ); this.labelIds = labelIds; }
/** * Create a StoreIndexDescriptor, which represent the commit version of this index, that is owned * by a uniqueness constraint. * * @param id id of the committed index * @param owningConstraintId id of the uniqueness constraint owning this index * @return a StoreIndexDescriptor */ public StoreIndexDescriptor withIds( long id, long owningConstraintId ) { assertValidId( id, "id" ); assertValidId( owningConstraintId, "owning constraint id" ); return new StoreIndexDescriptor( this, id, owningConstraintId ); }
@Override public boolean needsValues() { return client.needsValues(); } };
private void closeProgressor() { if ( progressor != null ) { progressor.close(); progressor = null; } } }
@Override public IndexSample sampleResult() { return new IndexSample(); } };