public interface DocumentLoader
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction()
Begins a transaction
|
void |
commitTransaction()
Sends any outstanding documents to the destination and waits for a positive
or negative ack (i.e.
|
void |
load(SolrInputDocument doc)
Loads the given document into the destination
|
SolrPingResponse |
ping()
Issues a ping request to check if the server is alive
|
UpdateResponse |
rollbackTransaction()
Performs a rollback of all non-committed documents pending.
|
void |
shutdown()
Releases allocated resources
|
void beginTransaction()
throws IOException,
SolrServerException
IOExceptionSolrServerExceptionvoid load(SolrInputDocument doc) throws IOException, SolrServerException
IOExceptionSolrServerExceptionvoid commitTransaction()
throws IOException,
SolrServerException
IOException - If there is a low-level I/O error.SolrServerExceptionUpdateResponse rollbackTransaction() throws IOException, SolrServerException
Note that this is not a true rollback as in databases. Content you have previously added may have already been committed due to autoCommit, buffer full, other client performing a commit etc. So this is only a best-effort rollback.
IOException - If there is a low-level I/O error.SolrServerExceptionvoid shutdown()
throws IOException,
SolrServerException
IOExceptionSolrServerExceptionSolrPingResponse ping() throws IOException, SolrServerException
IOException - If there is a low-level I/O error.SolrServerExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.