Class DocsumDefinitionSet


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

      • getDocsum

        public DocsumDefinition getDocsum​(java.lang.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 java.lang.String lazyDecode​(java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • size

        public int size()