public class BulkExportOpticResults
extends java.lang.Object
JoinWithOptic illustrates how to use DMSDK with Optic API. We use DMSDK to
query and retrieve a set of document URIs and per batch of URIs, we use TDE
to create views and use Optic API to perform joins.
SCENARIO: We have a requirement to do a recall and retrieve the customer
names and phone numbers who have placed an order for a particular product.
For this requirement, we have to join both customer information and order
information to get both phone number and order information. Since we could
have a huge number of orders in a production environment, we use DMSDK to get
the orders having that particular product and process it batch by batch to
join with customer information in a multi-threaded asynchronous manner
instead of doing a single join over the large dataset. For this example, we
use the same process but on a smaller dataset.
We have a set of documents which have information about the customers namely
customerid, name, phone number, state etc. We also have a set of documents
which have information about the orders placed by those customers namely
orderid, customerid of the customer who placed the order, products ordered
and the date on which the order was placed.