Class UuidTransformer

java.lang.Object
com.norconex.importer.handler.transformer.impl.UuidTransformer
All Implemented Interfaces:
Configurable<UuidTransformerConfig>, ConfigurableDocHandler<UuidTransformerConfig>, DocHandler

public class UuidTransformer extends Object implements ConfigurableDocHandler<UuidTransformerConfig>

Generates a random Universally unique identifier (UUID) and stores it in the specified field. If no field is provided, the UUID will be added to document.uuid.

Storing values in an existing field

If a target field with the same name already exists for a document, values will be added to the end of the existing value list. It is possible to change this default behavior by supplying a PropertySetter.

Can be used both as a pre-parse or post-parse handler.

See Also: