Class RemoveCorruptedLuceneSegmentsAction


  • public class RemoveCorruptedLuceneSegmentsAction
    extends java.lang.Object
    Removes corrupted Lucene index segments
    • Method Summary

      Modifier and Type Method Description
      protected void checkCorruptMarkerFileIsPresent​(org.apache.lucene.store.Directory directory)  
      void execute​(Terminal terminal, ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory, org.apache.lucene.store.Lock writeLock, java.io.PrintStream printStream, boolean verbose)  
      Tuple<RemoveCorruptedShardDataCommand.CleanStatus,​java.lang.String> getCleanStatus​(ShardPath shardPath, org.apache.lucene.store.Directory indexDirectory, org.apache.lucene.store.Lock writeLock, java.io.PrintStream printStream, boolean verbose)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoveCorruptedLuceneSegmentsAction

        public RemoveCorruptedLuceneSegmentsAction()
    • Method Detail

      • getCleanStatus

        public Tuple<RemoveCorruptedShardDataCommand.CleanStatus,​java.lang.String> getCleanStatus​(ShardPath shardPath,
                                                                                                        org.apache.lucene.store.Directory indexDirectory,
                                                                                                        org.apache.lucene.store.Lock writeLock,
                                                                                                        java.io.PrintStream printStream,
                                                                                                        boolean verbose)
                                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • execute

        public void execute​(Terminal terminal,
                            ShardPath shardPath,
                            org.apache.lucene.store.Directory indexDirectory,
                            org.apache.lucene.store.Lock writeLock,
                            java.io.PrintStream printStream,
                            boolean verbose)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • checkCorruptMarkerFileIsPresent

        protected void checkCorruptMarkerFileIsPresent​(org.apache.lucene.store.Directory directory)
                                                throws java.io.IOException
        Throws:
        java.io.IOException