org.apache.blur.manager.writer
Class SnapshotIndexDeletionPolicy
java.lang.Object
org.apache.lucene.index.IndexDeletionPolicy
org.apache.blur.manager.writer.SnapshotIndexDeletionPolicy
- All Implemented Interfaces:
- Cloneable
public class SnapshotIndexDeletionPolicy
- extends org.apache.lucene.index.IndexDeletionPolicy
Methods inherited from class org.apache.lucene.index.IndexDeletionPolicy |
clone |
SnapshotIndexDeletionPolicy
public SnapshotIndexDeletionPolicy(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path path)
throws IOException
- Throws:
IOException
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.