Class ResourceSimplifierStep

  • All Implemented Interfaces:
    AutoCloseable, Function<Stream<Event>,​Stream<Event>>, IPipelineStep

    public class ResourceSimplifierStep
    extends BasePipelineStep
    Converts events, i.e. splits the generic skeleton of a given event resource into parts to contain no references. The skeleton parts are attached to newly created DOCUMENT_PART events. Original references are converted either to skeleton parts or TEXT_UNIT events. The sequence of DOCUMENT_PART and TEXT_UNIT events is packed into a single MULTI_EVENT event.

    For text units, the step removes the skeleton of a text unit, creating document parts for the skeleton parts before and after the content placeholder, and removes the remaining tu skeleton as holding the content placeholder as its only part.

    • Constructor Detail

      • ResourceSimplifierStep

        public ResourceSimplifierStep()
    • Method Detail

      • getDescription

        public String getDescription()
        Description copied from interface: IPipelineStep
        Gets a short localizable description of what this step does.
        Returns:
        the text of a short description of what this step does.
      • getName

        public String getName()
        Description copied from interface: IPipelineStep
        Gets the localizable name of this step.
        Returns:
        the localizable name of this step.
      • setTargetLocales

        public void setTargetLocales​(List<LocaleId> targetLocales)
      • setOutputEncoding

        public void setOutputEncoding​(String outputEncoding)