Package org.apache.lucene.index
Class SlowCodecReaderWrapper
- java.lang.Object
-
- org.apache.lucene.index.SlowCodecReaderWrapper
-
public final class SlowCodecReaderWrapper extends Object
Wraps arbitrary readers for merging. Note that this can cause slow and memory-intensive merges. Consider usingFilterCodecReader
instead.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodecReader
wrap(LeafReader reader)
Returns aCodecReader
view of reader.
-
-
-
Method Detail
-
wrap
public static CodecReader wrap(LeafReader reader) throws IOException
Returns aCodecReader
view of reader.If
reader
is already aCodecReader
, it is returned directly. Otherwise, a (slow) view is returned.- Throws:
IOException
-
-