Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
public class TypeConfiguration implements Serializable {
    /** Serial version UID. */
    private static final long serialVersionUID = 0L;
 
    /** 
     * Type name. Can be one of three things:
     * - Simple type name. Use it when type is not in classpath;
     * - Fully qualified type name. Prefer it when type is in classpath to avoid conflicts. 
     *   E.g. "my.package.employee.Address", "my.package.organization.Address";
     * - Package wildcard. Must ends with ".*" in this case. E.g. "my.package.*".
     */
    private String typeName;
 
    /** Used to configure single type when it is not in classpath. */
    public void setTypeName(String);
 
    /** Used to configure specific class. Both typeName and packageName fields will be set. */
    public void setClass(Class);
 
    /** Affinity key field name. */
    private String affKeyFieldName;

    /** Type info extensions. */
    private Map<Class<? extends TypeInfo>, ? extends TypeInfo> typeInfos;
 
    public voidTypeInfo[] setTypeInfo(TypeInfo... typeInfosgetTypeInfo() {...}
 
    public void TypeInfo[] getTypeInfo(setTypeInfo(TypeInfo... typeInfos) {...}  
 
    public <T extends TypeInfo> T getTypeInfo(Class<T> infoCls) {...}
}

...

Code Block
languagejava
public class QueryTypeInfo implements TypeInfo {
    /** Serial version UID. */
    private static final long serialVersionUID = 0L;

    /** Field name-to-type map to be queried, in addition to indexed fieldsFields. */
    @GridToStringInclude
    private Map<String, Class<?>> qryFldsCollection<QueryFieldInfo> flds;
 
    /** Field name-to-type map to index in ascending orderGroup indexes. */
    @GridToStringInclude
    private Map<String, Class<?>>QueryFieldInfo> ascFldsgrpIdxs;
 
    /** 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> txtFldstxtIdxs;

    /** Fields to create group indexes for. */
    @GridToStringInclude
    private Map<String, LinkedHashMap<String, IgniteBiTuple<Class<?>, Boolean>>> grps;
}
Code Block
languagejava
public class QueryTypeInfoQueryFieldInfo implements TypeInfo {
    /** Serial version UID. */
    private static final long serialVersionUID = 0L;

    /** 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;
String name;
 
    /** Field name-to-type map to index in descending orderclass. */
    @GridToStringInclude
    private Map<String, Class<?>> descFldsClass cls;
 
    /** FieldsWhether to index asthe textfield. */
    @GridToStringInclude
    private Collection<String>QueryFieldIndex txtFldsidx;

    /** Fields to create group indexes for. */}
Code Block
languagejava
public enum QueryFieldIndex {
    @GridToStringIncludeNONE,
    private Map<StringASC,
 LinkedHashMap<String, IgniteBiTuple<Class<?>, Boolean>>> grps;DESC
}