Class CacheMappingConfigurationSchema

java.lang.Object
org.gridgain.dr.configuration.CacheMappingConfigurationSchema

@Config public class CacheMappingConfigurationSchema extends Object
Configuration schema for cache to table mapping.
  • Field Details

    • table

      @Value public String table
      Cache name to table name mapping.
    • fields

      @NamedConfigValue(syntheticKeyName="field") public CacheFieldMappingConfigurationSchema fields
      Cache fields to table columns mapping.

      Note: this configuration option conflicts with keyFields + valueFields and transformerFactoryClassName.

    • keyFields

      @NamedConfigValue(syntheticKeyName="field") public CacheFieldMappingConfigurationSchema keyFields
      Cache key fields to table columns mapping.

      Note: this configuration option conflicts with fields and transformerFactoryClassName.

    • valueFields

      @NamedConfigValue(syntheticKeyName="field") public CacheFieldMappingConfigurationSchema valueFields
      Cache value fields to table columns mapping.

      Note: this configuration option conflicts with fields and transformerFactoryClassName.

    • transformerFactoryClassName

      @Value(hasDefault=true) public String transformerFactoryClassName
      Specifies the fully qualified factory class to create EntryTransformer to use to convert GridGain 8 entries to GridGain 9.

      The class provided should be public and should contain method with signature public static EntryTransformer create(). Here is an example:

      
       // Part of configuration:
       dr-service-config.cacheMapping.transformerFactoryClassName = "my.company.transformer.MyEntryTransformerFactory"
       
       // Factory implementation
       package my.company.transformer;
       
       public class MyEntryTransformerFactory {
           public static EntryTransformer create() {
               // Code of transformer creation
           }
       }
       

      Note: this configuration option conflicts with fields and keyFields + valueFields.

  • Constructor Details

    • CacheMappingConfigurationSchema

      public CacheMappingConfigurationSchema()