internal override IndexReference Refresh(IndexReference indexReference) { return(indexReference); }
public DocToIdIterator(IndexHits <Document> source, ICollection <EntityId> exclude, IndexReference searcherOrNull, LongSet idsModifiedInTransactionState) { this._source = source; this._removedInTransactionState = exclude; this._searcherOrNull = searcherOrNull; this._idsModifiedInTransactionState = idsModifiedInTransactionState; if (source.Size() == 0) { Close(); } }
/// <summary> /// If nothing has changed underneath (since the searcher was last created or refreshed) {@code searcher} is /// returned. But if something has changed a refreshed searcher is returned. It makes use if the /// <seealso cref="DirectoryReader.openIfChanged(DirectoryReader, IndexWriter, bool)"/> which faster than opening an index /// from scratch. /// </summary> /// <param name="indexReference"> the <seealso cref="IndexReference"/> to refresh. </param> /// <returns> a refreshed version of the searcher or, if nothing has changed, /// {@code null}. </returns> /// <exception cref="RuntimeException"> if there's a problem with the index. </exception> /// <exception cref="ExplicitIndexNotFoundKernelException"> if the index is dropped prior to, or concurrently with, this /// operation. </exception> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: abstract IndexReference refresh(IndexReference indexReference) throws org.neo4j.internal.kernel.api.exceptions.explicitindex.ExplicitIndexNotFoundKernelException; internal abstract IndexReference Refresh(IndexReference indexReference);