Class RealtimeLuceneIndexRefreshState


  • public class RealtimeLuceneIndexRefreshState
    extends Object
    This class manages the realtime lucene index readers. Creates a global queue with all the realtime segment lucene index readers across all tables and manages their refresh using RealtimeLuceneIndexReaderRefreshThread TODO: eventually we should explore partitioning this queue on per table basis
    • Method Detail

      • start

        public void start()
        Used by HelixServerStarter during bootstrap to create the singleton instance of this class and start the realtime reader refresh thread.
      • stop

        public void stop()
        Used by HelixServerStarter during shutdown. This sets the volatile "stopped" variable to indicate the shutdown to refresh thread. Since refresh thread might be suspended waiting on the condition variable, we signal the condition variable for the refresh thread to wake up, check that shutdown has been initiated and exit.