public interface IMetadataChecksummer
ImporterDocument
can hold different values, but
be deemed logically the same.
Such documents do not have to be equal, but they should return the
same checksum. An example of
this can be two different URLs pointing to the same document, where only a
single instance should be kept.
IXMLConfigurable
should offer the following
XML configuration usage:
<metadataChecksummer class="(class)"> keep="[false|true]" targetField="(optional metadata field to store the checksum)" />
targetField
is ignored unless the keep
attribute is set to true
.AbstractMetadataChecksummer
Modifier and Type | Method and Description |
---|---|
String |
createMetadataChecksum(Properties metadata)
Creates a metadata checksum.
|
String createMetadataChecksum(Properties metadata)
metadata
- all metadata valuesCopyright © 2014–2021 Norconex Inc.. All rights reserved.