接口 DocumentTransformer
public interface DocumentTransformer
Defines the interface for transforming a
Document.
Implementations can perform a variety of tasks such as transforming, filtering, enriching, etc.-
方法概要
-
方法详细资料
-
transform
Transforms a provided document.- 参数:
document- The document to be transformed.- 返回:
- The transformed document, or null if the document should be filtered out.
-
transformAll
Transforms all the provided documents.- 参数:
documents- A list of documents to be transformed.- 返回:
- A list of transformed documents. The length of this list may be shorter or longer than the original list. Returns an empty list if all documents were filtered out.
-