setDocumentMetadataFactory
fun setDocumentMetadataFactory(factory: suspend (documentId: String, data: ByteString) -> AbstractDocumentMetadata): DocumentStore.Builder
Sets the factory function for creating AbstractDocumentMetadata instances.
This should only be called if the applications wants to use AbstractDocumentMetadata. By default there is no factory and Document.metadata field is null.
Return
the builder.
Parameters
factory
the factory to use.