public interface DocumentStoreApi
Client to the AIE document store (currently available only within an AIE node process).
DocumentStoreClients may be used within components by creating a private DocumentStoreClient field and setting the Spring @Autowired annotation on it.
$Revision$
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_STORE_NAMESPACE_PREFIX
the prefix for the content store namespace used when storing content pointers.
|
static List<String> |
DEFAULT_FILTER_FIELDS |
Modifier and Type | Method and Description |
---|---|
void |
delete(String namespace,
String docId)
Deletes the document from the specified collection
|
Iterable<IngestDocument> |
filteredRetrieve(String namespace,
Map<String,String> filters)
Finds and returns the documents matching the provided equality filters.
|
IngestDocument |
retrieve(String namespace,
String docId) |
void |
store(String namespace,
IngestDocument doc,
List<String> filterFields,
boolean storeContentPointers)
Stores the document in
namespace , creating indexes which allow equality filtering on the list of fields provided. |
IngestDocument |
storeAndUpdate(String namespace,
IngestDocument doc,
List<String> filterFields,
boolean storeContentPointers)
Stores the document in
namespace , creating indexes which allow equality filtering on the list of fields provided. |
static final String CONTENT_STORE_NAMESPACE_PREFIX
CONTENT_STORE_NAMESPACE_PREFIX
+".collection1".void delete(String namespace, String docId) throws AttivioException
namespace
- docId
- AttivioException
IngestDocument retrieve(String namespace, String docId) throws AttivioException
namespace
- docId
- AttivioException
void store(String namespace, IngestDocument doc, List<String> filterFields, boolean storeContentPointers) throws AttivioException
namespace
, creating indexes which allow equality filtering on the list of fields provided.
Only the first value any multi-valued fields is available for filtering. The document may be temporarily altered during
invocation. If the document mode is set to PARTIAL, the document will first be retrieved,
updated with any fields from doc
, then stored. If the document mode is set to ADD, any
existing version of the document will be replaced.
The input document is always unmodified upon return.
namespace
- doc
- filterFields
- storeContentPointers
- if false, content associated with content pointers will not be stored and upon retrieval the
content may no longer be present.AttivioException
IllegalArgumentException
- for document modes other than PARTIAL and ADDIngestDocument storeAndUpdate(String namespace, IngestDocument doc, List<String> filterFields, boolean storeContentPointers) throws AttivioException
namespace
, creating indexes which allow equality filtering on the list of fields provided.
Only the first value any multi-valued fields is available for filtering. The document may be temporarily altered during
invocation. If the document mode is set to PARTIAL, the document will first be retrieved,
updated with any fields from doc
, then stored. It will then be modified and returned (to support remote API calls).
The returned document will always have its document mode set to ADD if it had been PARTIAL,
regardless of whether or not it had ever been stored.
If the document mode is set to ADD, any existing version of the document will be replaced and the returned document will be the original document.
namespace
- doc
- filterFields
- storeContentPointers
- if false, content associated with content pointers will not be stored and upon retrieval the
content may not be present.AttivioException
IllegalArgumentException
- for document modes other than PARTIAL and ADDIterable<IngestDocument> filteredRetrieve(String namespace, Map<String,String> filters) throws AttivioException
namespace
- filters
- 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.