Class PassbackFilter

java.lang.Object
org.apache.tika.pipes.core.PassbackFilter
All Implemented Interfaces:
Serializable

public abstract class PassbackFilter extends Object implements Serializable
Filter/Select some of the emitted output and pass it back to the client parser.

This is intentionally NOT a MetadataFilter. MetadataFilter is applied before emission to transform metadata (e.g., remove fields, compute digests). PassbackFilter is applied after emission to select metadata to pass back from the forked PipesServer to the parent. They share a method signature but serve entirely different purposes.

See Also:
  • Constructor Details

    • PassbackFilter

      public PassbackFilter()
  • Method Details

    • filter

      public abstract void filter(List<Metadata> metadataList) throws TikaException
      Filters the metadata list in place, selecting which data to pass back to the client.
      Parameters:
      metadataList - the list to filter (must be mutable)
      Throws:
      TikaException - if filtering fails