Class CacheConfigurationEnrichment
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheConfigurationEnrichment
-
- All Implemented Interfaces:
Serializable
public class CacheConfigurationEnrichment extends Object implements Serializable
Object that contains serialized values for fields marked withSerializeSeparatelyinCacheConfiguration. This object is needed to exchange and store shrinked cache configurations to avoid possibleClassNotFoundExceptionerrors during deserialization on nodes where some specific class may not exist.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>fields()Returns all field names that can be potentially enriched.StringgetFieldClassName(String fieldName)byte[]getFieldSerializedValue(String fieldName)booleanhasField(String name)Returnstrueif this enrichment contains serialized valued for the specified field.StringtoString()
-
-
-
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)
Returnstrueif this enrichment contains serialized valued for the specified field.- Parameters:
name- Field name.- Returns:
- True when field presents, false otherwise.
-
-