Uses of Class
org.apache.lucene.index.DirectoryReader
-
-
Uses of DirectoryReader in org.apache.lucene.index
Subclasses of DirectoryReader in org.apache.lucene.index Modifier and Type Class Description classFilterDirectoryReaderA FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.classSoftDeletesDirectoryReaderWrapperThis reader filters out documents that have a doc values value in the given field and treat these documents as soft deleted.classStandardDirectoryReaderDefault implementation ofDirectoryReader.Fields in org.apache.lucene.index declared as DirectoryReader Modifier and Type Field Description protected DirectoryReaderFilterDirectoryReader. inThe filtered DirectoryReaderMethods in org.apache.lucene.index that return DirectoryReader Modifier and Type Method Description protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged()Implement this method to supportopenIfChanged(DirectoryReader).protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged(IndexCommit commit)Implement this method to supportopenIfChanged(DirectoryReader,IndexCommit).protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)Implement this method to supportopenIfChanged(DirectoryReader,IndexWriter,boolean).protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged()protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged(IndexCommit commit)protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)protected DirectoryReaderStandardDirectoryReader. doOpenIfChanged()protected DirectoryReaderStandardDirectoryReader. doOpenIfChanged(IndexCommit commit)protected DirectoryReaderStandardDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)protected abstract DirectoryReaderFilterDirectoryReader. doWrapDirectoryReader(DirectoryReader in)Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.protected DirectoryReaderSoftDeletesDirectoryReaderWrapper. doWrapDirectoryReader(DirectoryReader in)DirectoryReaderFilterDirectoryReader. getDelegate()Returns the wrappedDirectoryReader.static DirectoryReaderDirectoryReader. open(IndexCommit commit)Expert: returns an IndexReader reading the index in the givenIndexCommit.static DirectoryReaderDirectoryReader. open(IndexCommit commit, Map<String,String> readerAttributes)Expert: returns an IndexReader reading the index in the givenIndexCommit.static DirectoryReaderDirectoryReader. open(IndexWriter writer)Open a near real time IndexReader from theIndexWriter.static DirectoryReaderDirectoryReader. open(IndexWriter writer, boolean applyAllDeletes, boolean writeAllDeletes)Expert: open a near real time IndexReader from theIndexWriter, controlling whether past deletions should be applied.static DirectoryReaderDirectoryReader. open(Directory directory)Returns a IndexReader reading the index in the given Directorystatic DirectoryReaderDirectoryReader. open(Directory directory, Map<String,String> readerAttributes)Returns a IndexReader reading the index in the given Directorystatic DirectoryReaderStandardDirectoryReader. open(Directory directory, SegmentInfos infos, List<? extends LeafReader> oldReaders, Map<String,String> readerAttributes)This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos), as well as NRT replication.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader)If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexCommit commit)If the IndexCommit differs from what the provided reader is searching, open and return a new reader; else, return null.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer)Expert: If there changes (committed or not) in theIndexWriterversus what the provided reader is searching, then open and return a new IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes)Expert: Opens a new reader, if there are any changes, controlling whether past deletions should be applied.static DirectoryReaderFilterDirectoryReader. unwrap(DirectoryReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterDirectoryReader.Methods in org.apache.lucene.index with parameters of type DirectoryReader Modifier and Type Method Description protected abstract DirectoryReaderFilterDirectoryReader. doWrapDirectoryReader(DirectoryReader in)Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.protected DirectoryReaderSoftDeletesDirectoryReaderWrapper. doWrapDirectoryReader(DirectoryReader in)static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader)If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexCommit commit)If the IndexCommit differs from what the provided reader is searching, open and return a new reader; else, return null.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer)Expert: If there changes (committed or not) in theIndexWriterversus what the provided reader is searching, then open and return a new IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes)Expert: Opens a new reader, if there are any changes, controlling whether past deletions should be applied.static DirectoryReaderFilterDirectoryReader. unwrap(DirectoryReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterDirectoryReader.Constructors in org.apache.lucene.index with parameters of type DirectoryReader Constructor Description FilterDirectoryReader(DirectoryReader in, FilterDirectoryReader.SubReaderWrapper wrapper)Create a new FilterDirectoryReader that filters a passed in DirectoryReader, using the supplied SubReaderWrapper to wrap its subreader.SoftDeletesDirectoryReaderWrapper(DirectoryReader in, String field)Creates a new soft deletes wrapper. -
Uses of DirectoryReader in org.apache.lucene.search
Constructors in org.apache.lucene.search with parameters of type DirectoryReader Constructor Description SearcherManager(DirectoryReader reader, SearcherFactory searcherFactory)Creates and returns a new SearcherManager from an existingDirectoryReader. -
Uses of DirectoryReader in org.elasticsearch.common.lucene
Methods in org.elasticsearch.common.lucene that return DirectoryReader Modifier and Type Method Description static DirectoryReaderLucene. wrapAllDocsLive(DirectoryReader in)Wraps a directory reader to make all documents live except those were rolled back or hard-deleted due to non-aborting exceptions during indexing.Methods in org.elasticsearch.common.lucene with parameters of type DirectoryReader Modifier and Type Method Description static DirectoryReaderLucene. wrapAllDocsLive(DirectoryReader in)Wraps a directory reader to make all documents live except those were rolled back or hard-deleted due to non-aborting exceptions during indexing. -
Uses of DirectoryReader in org.elasticsearch.common.lucene.index
Subclasses of DirectoryReader in org.elasticsearch.common.lucene.index Modifier and Type Class Description classElasticsearchDirectoryReaderAFilterDirectoryReaderthat exposes Elasticsearch internal per shard / index information like the shard ID.Methods in org.elasticsearch.common.lucene.index that return DirectoryReader Modifier and Type Method Description protected DirectoryReaderElasticsearchDirectoryReader. doWrapDirectoryReader(DirectoryReader in)Methods in org.elasticsearch.common.lucene.index with parameters of type DirectoryReader Modifier and Type Method Description static voidElasticsearchDirectoryReader. addReaderCloseListener(DirectoryReader reader, IndexReader.ClosedListener listener)Adds the given listener to the provided directory reader.protected DirectoryReaderElasticsearchDirectoryReader. doWrapDirectoryReader(DirectoryReader in)static ElasticsearchDirectoryReaderElasticsearchDirectoryReader. getElasticsearchDirectoryReader(DirectoryReader reader)Tries to unwrap the given reader until the firstElasticsearchDirectoryReaderinstance is found ornullif no instance is found.static ElasticsearchDirectoryReaderElasticsearchDirectoryReader. wrap(DirectoryReader reader, ShardId shardId)Wraps the given reader in aElasticsearchDirectoryReaderas well as all it's sub-readers inElasticsearchLeafReaderto expose the given shard Id. -
Uses of DirectoryReader in org.elasticsearch.index
Method parameters in org.elasticsearch.index with type arguments of type DirectoryReader Modifier and Type Method Description voidIndexModule. setReaderWrapper(Function<IndexService,CheckedFunction<DirectoryReader,DirectoryReader,IOException>> indexReaderWrapperFactory)Sets the factory for creating newDirectoryReaderwrapper instances.voidIndexModule. setReaderWrapper(Function<IndexService,CheckedFunction<DirectoryReader,DirectoryReader,IOException>> indexReaderWrapperFactory)Sets the factory for creating newDirectoryReaderwrapper instances. -
Uses of DirectoryReader in org.elasticsearch.index.engine
Methods in org.elasticsearch.index.engine that return DirectoryReader Modifier and Type Method Description DirectoryReaderEngine.Searcher. getDirectoryReader()protected DirectoryReaderNoOpEngine. open(IndexCommit commit)protected DirectoryReaderReadOnlyEngine. open(IndexCommit commit)Methods in org.elasticsearch.index.engine with parameters of type DirectoryReader Modifier and Type Method Description protected ElasticsearchDirectoryReaderReadOnlyEngine. wrapReader(DirectoryReader reader, Function<DirectoryReader,DirectoryReader> readerWrapperFunction)Method parameters in org.elasticsearch.index.engine with type arguments of type DirectoryReader Modifier and Type Method Description protected ElasticsearchDirectoryReaderReadOnlyEngine. wrapReader(DirectoryReader reader, Function<DirectoryReader,DirectoryReader> readerWrapperFunction)protected ElasticsearchDirectoryReaderReadOnlyEngine. wrapReader(DirectoryReader reader, Function<DirectoryReader,DirectoryReader> readerWrapperFunction)Constructor parameters in org.elasticsearch.index.engine with type arguments of type DirectoryReader Constructor Description ReadOnlyEngine(EngineConfig config, SeqNoStats seqNoStats, TranslogStats translogStats, boolean obtainLock, Function<DirectoryReader,DirectoryReader> readerWrapperFunction)Creates a new ReadOnlyEngine.ReadOnlyEngine(EngineConfig config, SeqNoStats seqNoStats, TranslogStats translogStats, boolean obtainLock, Function<DirectoryReader,DirectoryReader> readerWrapperFunction)Creates a new ReadOnlyEngine. -
Uses of DirectoryReader in org.elasticsearch.index.fielddata
Methods in org.elasticsearch.index.fielddata with parameters of type DirectoryReader Modifier and Type Method Description <FD extends AtomicFieldData,IFD extends IndexFieldData.Global<FD>>
IFDIndexFieldDataCache. load(DirectoryReader indexReader, IFD indexFieldData)<FD extends AtomicFieldData,IFD extends IndexFieldData.Global<FD>>
IFDIndexFieldDataCache.None. load(DirectoryReader indexReader, IFD indexFieldData)IndexFieldData<FD>IndexFieldData.Global. loadGlobal(DirectoryReader indexReader)IndexOrdinalsFieldDataIndexOrdinalsFieldData. loadGlobal(DirectoryReader indexReader)Load a global view of the ordinals for the givenIndexReader, potentially from a cache.IndexFieldData<FD>IndexFieldData.Global. localGlobalDirect(DirectoryReader indexReader)IndexOrdinalsFieldDataIndexOrdinalsFieldData. localGlobalDirect(DirectoryReader indexReader)Load a global view of the ordinals for the givenIndexReader. -
Uses of DirectoryReader in org.elasticsearch.index.fielddata.ordinals
Methods in org.elasticsearch.index.fielddata.ordinals with parameters of type DirectoryReader Modifier and Type Method Description IndexOrdinalsFieldDataGlobalOrdinalsIndexFieldData.Consumer. loadGlobal(DirectoryReader indexReader)IndexOrdinalsFieldDataGlobalOrdinalsIndexFieldData. loadGlobal(DirectoryReader indexReader)IndexOrdinalsFieldDataGlobalOrdinalsIndexFieldData.Consumer. localGlobalDirect(DirectoryReader indexReader)IndexOrdinalsFieldDataGlobalOrdinalsIndexFieldData. localGlobalDirect(DirectoryReader indexReader)IndexOrdinalsFieldDataGlobalOrdinalsIndexFieldData. newConsumer(DirectoryReader source) -
Uses of DirectoryReader in org.elasticsearch.index.fielddata.plain
Methods in org.elasticsearch.index.fielddata.plain with parameters of type DirectoryReader Modifier and Type Method Description IndexOrdinalsFieldDataAbstractIndexOrdinalsFieldData. loadGlobal(DirectoryReader indexReader)IndexOrdinalsFieldDataConstantIndexFieldData. loadGlobal(DirectoryReader indexReader)IndexOrdinalsFieldDataSortedSetDVOrdinalsIndexFieldData. loadGlobal(DirectoryReader indexReader)IndexOrdinalsFieldDataAbstractIndexOrdinalsFieldData. localGlobalDirect(DirectoryReader indexReader)IndexOrdinalsFieldDataConstantIndexFieldData. localGlobalDirect(DirectoryReader indexReader)IndexOrdinalsFieldDataSortedSetDVOrdinalsIndexFieldData. localGlobalDirect(DirectoryReader indexReader) -
Uses of DirectoryReader in org.elasticsearch.index.shard
Methods in org.elasticsearch.index.shard with parameters of type DirectoryReader Modifier and Type Method Description static ShardIdShardUtils. extractShardId(DirectoryReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.Constructor parameters in org.elasticsearch.index.shard with type arguments of type DirectoryReader Constructor Description IndexShard(ShardRouting shardRouting, IndexSettings indexSettings, ShardPath path, Store store, Supplier<Sort> indexSortSupplier, IndexCache indexCache, MapperService mapperService, SimilarityService similarityService, EngineFactory engineFactory, IndexEventListener indexEventListener, CheckedFunction<DirectoryReader,DirectoryReader,IOException> indexReaderWrapper, ThreadPool threadPool, BigArrays bigArrays, Engine.Warmer warmer, List<SearchOperationListener> searchOperationListener, List<IndexingOperationListener> listeners, Runnable globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer, CircuitBreakerService circuitBreakerService)IndexShard(ShardRouting shardRouting, IndexSettings indexSettings, ShardPath path, Store store, Supplier<Sort> indexSortSupplier, IndexCache indexCache, MapperService mapperService, SimilarityService similarityService, EngineFactory engineFactory, IndexEventListener indexEventListener, CheckedFunction<DirectoryReader,DirectoryReader,IOException> indexReaderWrapper, ThreadPool threadPool, BigArrays bigArrays, Engine.Warmer warmer, List<SearchOperationListener> searchOperationListener, List<IndexingOperationListener> listeners, Runnable globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer, CircuitBreakerService circuitBreakerService) -
Uses of DirectoryReader in org.elasticsearch.search.internal
Methods in org.elasticsearch.search.internal that return DirectoryReader Modifier and Type Method Description DirectoryReaderContextIndexSearcher. getDirectoryReader()
-