Class SegmentCoreReaders


  • final class SegmentCoreReaders
    extends java.lang.Object
    Holds core readers that are shared (unchanged) when SegmentReader is cloned or reopened
    • Constructor Detail

      • SegmentCoreReaders

        SegmentCoreReaders​(Directory dir,
                           SegmentCommitInfo si,
                           boolean openedFromWriter,
                           IOContext context,
                           java.util.Map<java.lang.String,​java.lang.String> readerAttributes)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getRefCount

        int getRefCount()
      • incRef

        void incRef()
      • decRef

        void decRef()
             throws java.io.IOException
        Throws:
        java.io.IOException
      • notifyCoreClosedListeners

        private void notifyCoreClosedListeners()
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object