public final class DocsumDefinitionSet extends Object
Modifier and Type | Field and Description |
---|---|
private HashMap<String,DocsumDefinition> |
definitionsByName |
private LegacyEmulationConfig |
emulationConfig |
private static Logger |
log |
static int |
SLIME_MAGIC_ID |
Constructor and Description |
---|
DocsumDefinitionSet(DocumentdbInfoConfig.Documentdb config) |
DocsumDefinitionSet(DocumentdbInfoConfig.Documentdb config,
LegacyEmulationConfig emulConfig) |
Modifier and Type | Method and Description |
---|---|
private void |
configure(DocumentdbInfoConfig.Documentdb config) |
DocsumDefinition |
getDocsumDefinition(String name)
Returns a docsum definition by name, or null if not found
|
String |
lazyDecode(String summaryClass,
byte[] data,
FastHit hit)
Makes data available for decoding for the given hit.
|
private DocsumDefinition |
lookupDocsum(String summaryClass) |
int |
size() |
String |
toString() |
public static final int SLIME_MAGIC_ID
private static final Logger log
private final HashMap<String,DocsumDefinition> definitionsByName
private final LegacyEmulationConfig emulationConfig
public DocsumDefinitionSet(DocumentdbInfoConfig.Documentdb config)
public DocsumDefinitionSet(DocumentdbInfoConfig.Documentdb config, LegacyEmulationConfig emulConfig)
public final DocsumDefinition getDocsumDefinition(String name)
name
- the name of the summary class to use, or null to use the name "default"public final String lazyDecode(String summaryClass, byte[] data, FastHit hit)
summaryClass
- the requested summary classdata
- docsum data from backendhit
- the Hit corresponding to this document summaryConfigurationException
- if the summary class of this hit is missingprivate DocsumDefinition lookupDocsum(String summaryClass)
public int size()
private void configure(DocumentdbInfoConfig.Documentdb config)
Copyright © 2018. All rights reserved.