Interface ExternalMetadataConsumer


  • public interface ExternalMetadataConsumer
    • Method Detail

      • addMetadataToPrefix

        void addMetadataToPrefix​(String URL,
                                 com.google.common.collect.ListMultimap<String,​String> metadata)
                          throws IllegalArgumentException
        Adds an external metadata mapping.
        Parameters:
        URL - URL prefix. Must include a full hostname, if no protocol specified then http:// assumed e.g. https://www.example.org/movies
        metadata - a multimap of one or more metadata keys and values.
        Throws:
        IllegalArgumentException - when one or more of the arguments is not valid.
      • addExternalMetadataLine

        @Deprecated
        void addExternalMetadataLine​(String externalMetadataLine)
                              throws IllegalArgumentException
        Deprecated.
        Adds an external metadata mapping line in the external-metadata.cfg format. The format is defined in: https://docs.squiz.net/funnelback/docs/latest/build/data-sources/indexer-configuration/metadata/external-metadata.html Deprecated, use the addMetadataToPrefix() method since this format is ill-defined, and invalid lines may not always be detected you expect them to be.
        Parameters:
        externalMetadataLine - a single external metadata line.
        Throws:
        IllegalArgumentException - if the externalMetadataLine is invalid.