Class IncrementalFlushPolicy

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    IncrementalFlushDocs, IncrementalFlushMemory, IncrementalFlushTime

    public class IncrementalFlushPolicy
    extends java.lang.Object
    implements java.lang.Runnable
    Policy for flushing out documents in an index to disks
    Since:
    4.0
    Author:
    Richard McCreadie, Stuart Mackie
    • Constructor Detail

      • IncrementalFlushPolicy

        public IncrementalFlushPolicy​(IncrementalIndex index)
    • Method Detail

      • flushPolicy

        public boolean flushPolicy()
        No flush.
      • flushCheck

        public boolean flushCheck()
        Never flush.
      • run

        public void run()
        Flush contents of in-memory index to disk.
        Specified by:
        run in interface java.lang.Runnable