Class CacheConfigurationEnrichment

    • Constructor Detail

      • CacheConfigurationEnrichment

        public CacheConfigurationEnrichment​(Map<String,​byte[]> enrichFields,
                                            Map<String,​String> fieldClassNames)
        Creates a new instance of CacheConfigurationEnrichment.
        Parameters:
        enrichFields - Mapping a field name to its serialized value.
        fieldClassNames - Field class names.
    • Method Detail

      • getFieldSerializedValue

        public byte[] getFieldSerializedValue​(String fieldName)
        Parameters:
        fieldName - Field name.
        Returns:
        Serialized value of the given field.
      • fields

        public Set<String> fields()
        Returns all field names that can be potentially enriched.
        Returns:
        Set of field names.
      • getFieldClassName

        public String getFieldClassName​(String fieldName)
        Parameters:
        fieldName - Field name.
        Returns:
        Class name of the given field.
      • hasField

        public boolean hasField​(String name)
        Returns true if this enrichment contains serialized valued for the specified field.
        Parameters:
        name - Field name.
        Returns:
        True when field presents, false otherwise.