org.apache.blur.manager.writer
Class SnapshotIndexDeletionPolicy

java.lang.Object
  extended by org.apache.lucene.index.IndexDeletionPolicy
      extended by org.apache.blur.manager.writer.SnapshotIndexDeletionPolicy
All Implemented Interfaces:
Cloneable

public class SnapshotIndexDeletionPolicy
extends org.apache.lucene.index.IndexDeletionPolicy


Constructor Summary
SnapshotIndexDeletionPolicy(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path path)
           
 
Method Summary
 void createSnapshot(String name, org.apache.lucene.index.DirectoryReader reader, String context)
           
 Collection<String> getSnapshots()
           
 org.apache.hadoop.fs.Path getSnapshotsDirectoryPath()
           
 void onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits)
           
 void onInit(List<? extends org.apache.lucene.index.IndexCommit> commits)
           
 void removeSnapshot(String name, String context)
           
 
Methods inherited from class org.apache.lucene.index.IndexDeletionPolicy
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotIndexDeletionPolicy

public SnapshotIndexDeletionPolicy(org.apache.hadoop.conf.Configuration configuration,
                                   org.apache.hadoop.fs.Path path)
                            throws IOException
Throws:
IOException
Method Detail

onInit

public void onInit(List<? extends org.apache.lucene.index.IndexCommit> commits)
            throws IOException
Specified by:
onInit in class org.apache.lucene.index.IndexDeletionPolicy
Throws:
IOException

onCommit

public void onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits)
              throws IOException
Specified by:
onCommit in class org.apache.lucene.index.IndexDeletionPolicy
Throws:
IOException

createSnapshot

public void createSnapshot(String name,
                           org.apache.lucene.index.DirectoryReader reader,
                           String context)
                    throws IOException
Throws:
IOException

removeSnapshot

public void removeSnapshot(String name,
                           String context)
                    throws IOException
Throws:
IOException

getSnapshots

public Collection<String> getSnapshots()

getSnapshotsDirectoryPath

public org.apache.hadoop.fs.Path getSnapshotsDirectoryPath()


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.