THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
/** * */ public class TypeConfiguration { /** Type name. Supports wildcards. */ private String typeName; /** Affinity key field name. */ private String affKeyFieldName; /** Type info extensions. */ private Map<Class<? extends TypeInfo>, ? extends TypeInfo> typeInfos; public void setTypeInfos(Collection<? extends TypeInfo> typeInfos) {...} public Collection<? extends TypeInfo> getTypeInfos() {...} public <T extends TypeInfo> T getTypeInfo(Class<T> infoCls) {...} }
/** * */ public interface TypeInfo { }
/** * */ public class PersistenceTypeInfo implements TypeInfo { /** Schema name in database. */ private String dbSchema; /** Table name in database. */ private String dbTbl; /** Persisted fields. */ @GridToStringInclude private Collection<CacheTypeFieldMetadata> fields; }
/** * */ public class PortableTypeInfo implements TypeInfo { /** ID mapper. */ private PortableIdMapper idMapper; /** Serializer. */ private PortableSerializer serializer; /** Use timestamp flag. */ private Boolean useTs; /** Meta data enabled flag. */ private Boolean metaDataEnabled; }
/** * */ public class QueryTypeInfo implements TypeInfo { /** Field name-to-type map to be queried, in addition to indexed fields. */ @GridToStringInclude private Map<String, Class<?>> qryFlds; /** Field name-to-type map to index in ascending order. */ @GridToStringInclude private Map<String, Class<?>> ascFlds; /** Field name-to-type map to index in descending order. */ @GridToStringInclude private Map<String, Class<?>> descFlds; /** Fields to index as text. */ @GridToStringInclude private Collection<String> txtFlds; /** Fields to create group indexes for. */ @GridToStringInclude private Map<String, LinkedHashMap<String, IgniteBiTuple<Class<?>, Boolean>>> grps; }