public class SolrDeletionPolicy extends IndexDeletionPolicy implements NamedListInitializedPlugin
IndexDeletionPolicy
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
SolrDeletionPolicy() |
Modifier and Type | Method and Description |
---|---|
String |
getMaxCommitAge() |
int |
getMaxCommitsToKeep() |
int |
getMaxOptimizedCommitsToKeep() |
void |
init(NamedList args) |
void |
onCommit(List<? extends IndexCommit> commits)
Internal use for Lucene...
|
void |
onInit(List<? extends IndexCommit> commits)
Internal use for Lucene...
|
void |
setMaxCommitsToKeep(int maxCommitsToKeep) |
void |
setMaxOptimizedCommitsToKeep(int maxOptimizedCommitsToKeep) |
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
public void onInit(List<? extends IndexCommit> commits) throws IOException
onInit
in class IndexDeletionPolicy
IOException
public void onCommit(List<? extends IndexCommit> commits) throws IOException
onCommit
in class IndexDeletionPolicy
IOException
public String getMaxCommitAge()
public int getMaxCommitsToKeep()
public int getMaxOptimizedCommitsToKeep()
public void setMaxCommitsToKeep(int maxCommitsToKeep)
public void setMaxOptimizedCommitsToKeep(int maxOptimizedCommitsToKeep)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.