Class FsMetadataChecksummer

All Implemented Interfaces:
Configurable<BaseChecksummerConfig>, MetadataChecksummer

public class FsMetadataChecksummer extends AbstractMetadataChecksummer<BaseChecksummerConfig>

Default implementation of MetadataChecksummer which by default returns the combined values of FsDocMetadata.LAST_MODIFIED and FsDocMetadata.FILE_SIZE, separated with an underscore (e.g. "14125443181234_123").

You have the option to keep the checksum as a document metadata field. When BaseChecksummerConfig.setKeep(boolean) is true, the checksum will be stored in the target field name specified. If you do not specify any, it stores it under the metadata field name CrawlerDocMetaConstants.CHECKSUM_METADATA.

To use different fields (one or several) to constitute a checksum, you can use the GenericMetadataChecksummer.

Author:
Pascal Essiembre
See Also: