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
Fields Modifier and Type Field Description private java.lang.String
field
private java.util.Map<IndexReader.CacheKey,LeafReader>
mapping
-
Constructor Summary
Constructors Constructor Description SoftDeletesSubReaderWrapper(java.util.Map<IndexReader.CacheKey,LeafReader> oldReadersCache, java.lang.String field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LeafReader[]
wrap(java.util.List<? extends LeafReader> readers)
Wraps a list of LeafReadersLeafReader
wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
-
-
-
Field Detail
-
mapping
private final java.util.Map<IndexReader.CacheKey,LeafReader> mapping
-
field
private final java.lang.String field
-
-
Constructor Detail
-
SoftDeletesSubReaderWrapper
public SoftDeletesSubReaderWrapper(java.util.Map<IndexReader.CacheKey,LeafReader> oldReadersCache, java.lang.String field)
-
-
Method Detail
-
wrap
protected LeafReader[] wrap(java.util.List<? extends LeafReader> readers)
Description copied from class:FilterDirectoryReader.SubReaderWrapper
Wraps a list of LeafReaders- Overrides:
wrap
in 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
public LeafReader wrap(LeafReader reader)
Description copied from class:FilterDirectoryReader.SubReaderWrapper
Wrap one of the parent DirectoryReader's subreaders- Specified by:
wrap
in classFilterDirectoryReader.SubReaderWrapper
- Parameters:
reader
- the subreader to wrap- Returns:
- a wrapped/filtered LeafReader
-
-