Package com.yahoo.prelude.fastsearch
Class DocsumDefinitionSet
java.lang.Object
com.yahoo.prelude.fastsearch.DocsumDefinitionSet
A set of docsum definitions
- Author:
- bratseth, Bjørn Borud
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDocsumDefinitionSet(Schema schema) DocsumDefinitionSet(Collection<DocumentSummary> docsumDefinitions) -
Method Summary
Modifier and TypeMethodDescriptionReturns the summary definition of the given name, or the default if not found.booleanDo we have a summary definition with the given namelazyDecode(String summaryClass, byte[] data, FastHit hit) Makes data available for decoding for the given hit.intsize()toString()
-
Field Details
-
SLIME_MAGIC_ID
public static final int SLIME_MAGIC_ID- See Also:
-
-
Constructor Details
-
DocsumDefinitionSet
-
DocsumDefinitionSet
-
-
Method Details
-
getDocsum
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"
-
hasDocsum
Do we have a summary definition with the given name -
lazyDecode
Makes data available for decoding for the given hit.- Parameters:
summaryClass- the requested summary classdata- docsum data from backendhit- 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
-
size
public int size()
-