|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
DIHWriter
Release resources used by this writer. After calling close, reads & updates will throw exceptions.
close
in interface DIHWriter
public boolean upload(SolrInputDocument d)
DIHWriter
Add a document to this writer's underlying data store.
upload
in interface DIHWriter
public void deleteDoc(Object id)
DIHWriter
Delete from the writer's underlying data store based on the passed-in Primary Key
deleteDoc
in interface DIHWriter
public void deleteByQuery(String query)
DIHWriter
Delete from the writer's underlying data store based the passed-in writer-specific query. (Optional Operation)
deleteByQuery
in interface DIHWriter
public void commit(boolean optimize)
DIHWriter
If this writer supports transactions or commit points, then commit any changes, optionally optimizing the data for read/write performance
commit
in interface DIHWriter
public void rollback()
DIHWriter
If this writer supports transactions or commit points, then roll back any uncommitted changes.
rollback
in interface DIHWriter
public void doDeleteAll()
DIHWriter
Delete everything from the writer's underlying data store
doDeleteAll
in interface DIHWriter
public void init(Context context)
DIHWriter
Provide 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 |