public interface DocumentOutputClient extends SecurityFeeder
IngestClient
interface should be used for client side feeding applications
as it encompasses all feeding activities.Modifier and Type | Method and Description |
---|---|
void |
bulkUpdate(BulkUpdate message)
Send
message to AIE. |
void |
delete(Collection<String> ids)
See
delete(String...) for documentation. |
void |
delete(String... ids)
Delete a series of documents from AIE by document id.
|
void |
deleteByQuery(String queryWorkflow,
Query query)
Delete all documents that match the
Query . |
void |
endMessageGroup()
Ends the current message group (if any).
|
void |
feed(IngestDocument... docs)
Send
docs to AIE. |
void |
feed(Iterable<IngestDocument> docs)
Send
docs to AIE. |
boolean |
isMessageGroupInProgress() |
void |
startMessageGroup()
Starts a group of messages that will be processed together.
|
deletePrincipal, feed, feed
void delete(String... ids) throws AttivioException
If batching is enabled, then these delete messages will be batched along with any fed documents.
If these deletes are meant to apply to uncommitted documents previously fed with this ContentFeeder, then those documents must be committed to the index before this delete is called. When ordered commits is enabled, this entails calling:contentFeeder.commit(); contentFeeder.waitForCompletion(); contentFeeder.delete("id1",...);When ordered commits is disabled, it entails calling:
contentFeeder.waitForCompletion(); contentFeeder.commit(); contentFeeder.waitForCompletion(); contentFeeder.delete("id1",...);
ids
- The document IDs of the documents to delete.AttivioException
- if sending of deletes fails.void delete(Collection<String> ids) throws AttivioException
delete(String...)
for documentation.AttivioException
void deleteByQuery(String queryWorkflow, Query query) throws AttivioException
Query
.
If documents are currently batched up, then those documents will be sent along with this delete.
Use bulkUpdate(BulkUpdate)
to feed more complicated delete queries.
contentFeeder.commit(); contentFeeder.waitForCompletion(); contentFeeder.delete("id1",...);When ordered commits is disabled, it entails calling:
contentFeeder.waitForCompletion(); contentFeeder.commit(); contentFeeder.waitForCompletion(); contentFeeder.delete(...);
queryWorkflow
- the query workflow or null if none neededquery
- query to delete byAttivioException
void bulkUpdate(BulkUpdate message) throws AttivioException
message
to AIE.AttivioException
void feed(IngestDocument... docs) throws AttivioException
docs
to AIE.docs
- the documents to send.AttivioException
void feed(Iterable<IngestDocument> docs) throws AttivioException
docs
to AIE.docs
- the documents to send.AttivioException
boolean isMessageGroupInProgress()
true
if a message group has been started and not yet ended.void startMessageGroup() throws AttivioException
Starts a group of messages that will be processed together. All documents and deletes in the group will be processed together and in the order created.
NOTE: failure to end a started message group will cause the last message of the group in progress to not be sent.AttivioException
void endMessageGroup() throws AttivioException
startMessageGroup()
is called again.AttivioException
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.