Class ProcessBatch

    • Constructor Detail

      • ProcessBatch

        public ProcessBatch()
        Creates a new empty ProcessBatch.
      • ProcessBatch

        public ProcessBatch​(Collection<? extends ProcessContext> contexts)
        Creates a new ProcessBatch initialized with the given contexts.
        Parameters:
        contexts - the contexts associated with this batch
    • Method Detail

      • getIds

        public List<String> getIds()
        Returns the ids.
        Returns:
        the ids from the batch of contexts
      • getFirstId

        public String getFirstId()
        Returns the first id or null if batch is empty.
        Returns:
        the first id from the batch, null if the batch is empty
      • getFirstContext

        public ProcessContext getFirstContext()
        Returns the first found context or null if empty.
        Returns:
        the first context from the batch, null if the batch is empty
      • get

        public ProcessContext get​(String id)
        Returns the context for the given id or null if not found.
        Parameters:
        id - the document id
        Returns:
        the context associated with the given id, null if id not found
      • ofIds

        public static ProcessBatch ofIds​(List<String> ids)
        Creates a new ProcessBatch from a list of ids only (ie, no dependency information).
        Parameters:
        ids - the ids for the batch.
        Returns:
        a new batch