Class EmitDataImpl

java.lang.Object
org.apache.tika.pipes.core.emitter.EmitDataImpl
All Implemented Interfaces:
EmitData

public class EmitDataImpl extends Object implements EmitData
  • Constructor Details

  • Method Details

    • getEmitKey

      public String getEmitKey()
      Specified by:
      getEmitKey in interface EmitData
    • getMetadataList

      public List<Metadata> getMetadataList()
      Specified by:
      getMetadataList in interface EmitData
    • getContainerStackTrace

      public String getContainerStackTrace()
      Specified by:
      getContainerStackTrace in interface EmitData
    • getContentBytes

      public byte[] getContentBytes()
      Description copied from interface: EmitData
      Raw UTF-8 content bytes, set only when the request opted in via content-bytes-config under ParseMode.CONTENT_ONLY; the metadata then no longer carries TIKA_CONTENT. Null otherwise.
      Specified by:
      getContentBytes in interface EmitData
    • setContentBytes

      public void setContentBytes(byte[] contentBytes)
    • restoreContentFromBytes

      public void restoreContentFromBytes()
      Inverse of the content-bytes move: puts the content back in TIKA_CONTENT for consumers that only read the metadata list (e.g. a regular Emitter). No-op when there are no content bytes or the metadata already carries content.
    • getEstimatedSizeBytes

      public long getEstimatedSizeBytes()
      Specified by:
      getEstimatedSizeBytes in interface EmitData
    • getParseContext

      public ParseContext getParseContext()
      Gets the ParseContext. This is not serialized - it's set by PipesClient after deserialization from the original FetchEmitTuple.
      Specified by:
      getParseContext in interface EmitData
    • setParseContext

      public void setParseContext(ParseContext parseContext)
      Sets the ParseContext. Called by PipesClient after deserialization to restore the ParseContext from the original FetchEmitTuple.
    • toString

      public String toString()
      Overrides:
      toString in class Object