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 |
deleteById(String id)
Deletes the document with the given id from the destination
|
void |
deleteByQuery(String id)
Deletes the documents matching the given query from the destination
|
void |
load(org.apache.solr.common.SolrInputDocument doc)
Loads the given document into the destination
|
org.apache.solr.client.solrj.response.SolrPingResponse |
ping()
Issues a ping request to check if the server is alive
|
org.apache.solr.client.solrj.response.UpdateResponse |
rollbackTransaction()
Performs a rollback of all non-committed documents pending.
|
void |
shutdown()
Releases allocated resources
|
void beginTransaction() throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
void load(org.apache.solr.common.SolrInputDocument doc) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
void deleteById(String id) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
void deleteByQuery(String id) throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
void commitTransaction() throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
- If there is a low-level I/O error.org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.response.UpdateResponse rollbackTransaction() throws IOException, org.apache.solr.client.solrj.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.org.apache.solr.client.solrj.SolrServerException
void shutdown() throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.response.SolrPingResponse ping() throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
- If there is a low-level I/O error.org.apache.solr.client.solrj.SolrServerException
Copyright © 2013–2014. All rights reserved.