Class DocsumDefinitionSet


  • public final class DocsumDefinitionSet
    extends Object
    A set of docsum definitions
    Author:
    bratseth, Bjørn Borud
    • Method Detail

      • getDocsum

        public DocsumDefinition getDocsum​(String summaryClass)
        Returns the summary definition of the given name, or the default if not found.
        Throws:
        ConfigurationException - if the requested summary class is not found and there is none called "default"
      • lazyDecode

        public final String lazyDecode​(String summaryClass,
                                       byte[] data,
                                       FastHit hit)
        Makes data available for decoding for the given hit.
        Parameters:
        summaryClass - the requested summary class
        data - docsum data from backend
        hit - the Hit corresponding to this document summary
        Returns:
        Error message or null on success.
        Throws:
        ConfigurationException - if the summary class of this hit is missing
      • size

        public int size()