public class CountBasedCommit extends Object implements SolrCommitStrategy
Constructor and Description |
---|
CountBasedCommit(int threshold)
Initializes a count based commit strategy with the specified threshold.
|
Modifier and Type | Method and Description |
---|---|
boolean |
commit() |
int |
getCount() |
int |
getThreshold() |
void |
update() |
public CountBasedCommit(int threshold)
threshold
- The commit threshold, defining when SolrInputDocuments should be committed to Solrpublic boolean commit()
commit
in interface SolrCommitStrategy
public void update()
update
in interface SolrCommitStrategy
public int getCount()
public int getThreshold()
Copyright © 2023 The Apache Software Foundation. All rights reserved.