public class BulkExportOpticResultsToWriter
extends java.lang.Object
This is the same use case as
BulkExportOpticResults but it is more advanced than that. In
BulkExportOpticResults, we just print the output rows. Here, we use
custom created listener - OpticExportToWriterListener to write the
rows to a Writer output stream. Here, we write it into a text file.
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.