Package org.apache.lucene.index
Class SlowCodecReaderWrapper
java.lang.Object
org.apache.lucene.index.SlowCodecReaderWrapper
Wraps arbitrary readers for merging. Note that this can cause slow and memory-intensive merges.
Consider using
FilterCodecReader instead.-
Method Summary
Modifier and TypeMethodDescriptionstatic CodecReaderwrap(LeafReader reader) Returns aCodecReaderview of reader.
-
Method Details
-
wrap
Returns aCodecReaderview of reader.If
readeris already aCodecReader, it is returned directly. Otherwise, a (slow) view is returned.- Throws:
IOException
-