Class SlowCodecReaderWrapper

  • public final class SlowCodecReaderWrapper
    extends Object
    Wraps arbitrary readers for merging. Note that this can cause slow and memory-intensive merges. Consider using FilterCodecReader instead.
    • Method Detail

      • wrap

        public static CodecReader wrap​(LeafReader reader)
                                throws IOException
        Returns a CodecReader view of reader.

        If reader is already a CodecReader, it is returned directly. Otherwise, a (slow) view is returned.