Class SlowCodecReaderWrapper


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

      • SlowCodecReaderWrapper

        private SlowCodecReaderWrapper()
        No instantiation
    • Method Detail

      • wrap

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

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

        Throws:
        java.io.IOException
      • readerToFieldsProducer

        private static FieldsProducer readerToFieldsProducer​(LeafReader reader)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException