| Interface | Description |
|---|---|
| AutoCompleteApi |
API for the retrieving of query completion suggestions based on a current query request.
|
| ConnectorControlApi |
API that allows for control over predefined connectors inside the AIE platform.
|
| ConnectorHistoryApi |
The ConnectorHistoryApi records the current status and history of connector executions on the AIE platform.
|
| ContentStoreClient | Deprecated |
| DictionaryClient |
Dictionary Management API.
|
| DocumentOutputClient |
Client for feeding content to AIE.
|
| DocumentStoreApi |
Client to the AIE document store (currently available only within an AIE node process).
|
| EventStoreApi |
Store, retrieve and acknowledge events.
|
| IngestClient |
Sends content (documents, deletes, index messages) to an Attivio instance.
|
| IngestionHistoryApi |
The
IngestionHistoryApi is used to provide incremental capabilities to ingestion clients. |
| InputStreamBuilder |
Provides the ability to recreate an
InputStream on demand. |
| RelevancyModelApi |
API for interacting with relevancy models in the system.
|
| SearchClient |
Client for issuing searches against an AIE system.
|
| SignalTrackingApi |
API for interacting tracking signals in the system.
|
| Class | Description |
|---|---|
| MockAutoCompleteApi |
Default behavior is to noop, providers must be added in order to achieve other functionality or to test a specific provider
|
| MockRelevancyModelApi |
API for interacting with relevancy models in the system.
|
| MockSignalTrackingService |
| Annotation Type | Description |
|---|---|
| PooledClient |
Tagging annotation that tells the Service Discovery framework that this API should use a pooled client pattern.
|
| SharedClient |
Tagging annotation that tells the Service Discovery framework that this API should only be created once.
|
| StickyClient |
Tagging annotation that tells the Service Discovery framework that this API should use the same client connection for every API
call.
|
ServiceFactory can be used to create all
clients represented here using various host+port/uri combinations.
System.setProperty("AIE_ZOOKEEPER", "myHost:17001");
* IngestClient feeder = ServiceFactory.getService(IngestClient.class);
IngestDocument doc1 = new IngestDocument("myId-1");
doc1.setField("title", "my title");
feeder.feed(doc1);
// feed more documents
feeder.commit();
// wait for the commit to complete
feeder.waitForCompletion();
System.setProperty("AIE_ZOOKEEPER", "myHost:17001");
SearchClient searcher = ServiceFactory.getService(SearchClient.class);
QueryRequest req = new QueryRequest("foo");
req.addFacetField("myFacetField");
// set more query parameters
QueryResponse resp = searcher.search(req);
// output response information
System.setProperty("AIE_ZOOKEEPER", "myHost:17001");
ContentStoreClient contentStore = ServiceFactory.getService(ContentStoreClient.class);
// Create an object which can produce an input stream with relevant content (any useful bytes - like an image file)
InputStreamBuilder contentSource = new InputStreamBuilder()
{
private final FileInputStream fis = new FileInputStream("some_image.png");
@Override
InputStream createInputStream() throws IOException {
return fis;
}
@Override
void close() throws IOException {
if (fis != null) {
fis.close();
}
}
};
// Store the content in the content store and get back a content pointer
ContentPointer cp = contentStore.store("my_content_id", contentSource);
// do something with the content pointer, like store it in a document
IngestDocument doc = new IngestDocument("my_doc_id");
IngestField> imageField = new IngestField("image");
imageField.addFieldValue(cp);
doc.setField(imageField);
System.setProperty("AIE_ZOOKEEPER", "myHost:17001");
ConnectorControlApi connectorClient = ServiceFactory.getService(ConnectorControlApi.class);
// start the connector named "myCustomConnector"
connectorClient.start("myCustomConnector");
Copyright 2017 Attivio Inc., All rights reserved.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.