Class UuidTransformerConfig
java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.transformer.impl.UuidTransformerConfig
- All Implemented Interfaces:
Labelable
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetOnSet()The property setter to use when a value is set.The target field.inthashCode()setOnSet(PropertySetter onSet) The property setter to use when a value is set.setToField(String toField) The target field.toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Field Details
-
DEFAULT_FIELD
- See Also:
-
-
Constructor Details
-
UuidTransformerConfig
public UuidTransformerConfig()
-
-
Method Details
-
getToField
The target field.- Returns:
- target field
-
getOnSet
The property setter to use when a value is set.- Returns:
- property setter
-
setToField
The target field.- Parameters:
toField- target field- Returns:
this.
-
setOnSet
The property setter to use when a value is set.- Parameters:
onSet- property setter- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-