Interface SingleProcessor

    • Method Detail

      • process

        ProcessResult process​(ProcessContext context)
        Processes a single context (ie, no batching). Important: Be sure the batch capacity is set to one or Box will execute the batch sequentially.
        Parameters:
        context - the context containing the id, dependencies and other info for processing
        Returns:
        the result of processing the id including newly processed documents to be saved
      • process

        default ProcessResult process​(ProcessBatch batch)
        Description copied from interface: Processor
        Processes ids and dependencies associated with the ids into final documents to be saved in the database.
        Specified by:
        process in interface Processor
        Parameters:
        batch - a batch of ProcessContexts to be processed
        Returns:
        the result of processing the batch including newly processed documents to be saved