|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.handler.dataimport.DIHWriterBase
org.apache.solr.handler.dataimport.SolrWriter
public class SolrWriter
Writes documents to SOLR.
This API is experimental and may change in the future.
| Field Summary | |
|---|---|
static String |
LAST_INDEX_KEY
|
| Fields inherited from class org.apache.solr.handler.dataimport.DIHWriterBase |
|---|
deltaKeys, keyFieldName |
| Constructor Summary | |
|---|---|
SolrWriter(UpdateRequestProcessor processor,
SolrQueryRequest req)
|
|
| Method Summary | |
|---|---|
void |
close()
Release resources used by this writer. |
void |
commit(boolean optimize)
If this writer supports transactions or commit points, then commit any changes, optionally optimizing the data for read/write performance |
void |
deleteByQuery(String query)
Delete from the writer's underlying data store based the passed-in writer-specific query. |
void |
deleteDoc(Object id)
Delete from the writer's underlying data store based on the passed-in Primary Key |
void |
doDeleteAll()
Delete everything from the writer's underlying data store |
void |
init(Context context)
Provide context information for this writer. |
void |
rollback()
If this writer supports transactions or commit points, then roll back any uncommitted changes. |
boolean |
upload(SolrInputDocument d)
Add a document to this writer's underlying data store. |
| Methods inherited from class org.apache.solr.handler.dataimport.DIHWriterBase |
|---|
setDeltaKeys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.solr.handler.dataimport.DIHWriter |
|---|
setDeltaKeys |
| Field Detail |
|---|
public static final String LAST_INDEX_KEY
| Constructor Detail |
|---|
public SolrWriter(UpdateRequestProcessor processor,
SolrQueryRequest req)
| Method Detail |
|---|
public void close()
DIHWriterRelease resources used by this writer. After calling close, reads & updates will throw exceptions.
close in interface DIHWriterpublic boolean upload(SolrInputDocument d)
DIHWriterAdd a document to this writer's underlying data store.
upload in interface DIHWriterpublic void deleteDoc(Object id)
DIHWriterDelete from the writer's underlying data store based on the passed-in Primary Key
deleteDoc in interface DIHWriterpublic void deleteByQuery(String query)
DIHWriterDelete from the writer's underlying data store based the passed-in writer-specific query. (Optional Operation)
deleteByQuery in interface DIHWriterpublic void commit(boolean optimize)
DIHWriterIf this writer supports transactions or commit points, then commit any changes, optionally optimizing the data for read/write performance
commit in interface DIHWriterpublic void rollback()
DIHWriterIf this writer supports transactions or commit points, then roll back any uncommitted changes.
rollback in interface DIHWriterpublic void doDeleteAll()
DIHWriterDelete everything from the writer's underlying data store
doDeleteAll in interface DIHWriterpublic void init(Context context)
DIHWriterProvide context information for this writer. init() should be called before using the writer.
init in interface DIHWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||