Module org.apache.lucene.core
Package org.apache.lucene.index
Class SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper
java.lang.Object
org.apache.lucene.index.FilterDirectoryReader.SubReaderWrapper
org.apache.lucene.index.SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper
- Enclosing class:
SoftDeletesDirectoryReaderWrapper
private static class SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper
extends FilterDirectoryReader.SubReaderWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Map<IndexReader.CacheKey, LeafReader> -
Constructor Summary
ConstructorsConstructorDescriptionSoftDeletesSubReaderWrapper(Map<IndexReader.CacheKey, LeafReader> oldReadersCache, String field) -
Method Summary
Modifier and TypeMethodDescriptionprotected LeafReader[]wrap(List<? extends LeafReader> readers) Wraps a list of LeafReaderswrap(LeafReader reader) Wrap one of the parent DirectoryReader's subreaders
-
Field Details
-
mapping
-
field
-
-
Constructor Details
-
SoftDeletesSubReaderWrapper
public SoftDeletesSubReaderWrapper(Map<IndexReader.CacheKey, LeafReader> oldReadersCache, String field)
-
-
Method Details
-
wrap
Description copied from class:FilterDirectoryReader.SubReaderWrapperWraps a list of LeafReaders- Overrides:
wrapin classFilterDirectoryReader.SubReaderWrapper- Returns:
- an array of wrapped LeafReaders. The returned array might contain less elements compared to the given reader list if an entire reader is filtered out.
-
wrap
Description copied from class:FilterDirectoryReader.SubReaderWrapperWrap one of the parent DirectoryReader's subreaders- Specified by:
wrapin classFilterDirectoryReader.SubReaderWrapper- Parameters:
reader- the subreader to wrap- Returns:
- a wrapped/filtered LeafReader
-