private void processClassMeta(CacheTypeMetadata meta,TypeDescriptor d,CacheObjectContext coCtx) throws IgniteCheckedException {
  Map<String,String> aliases=meta.getAliases();
  if (aliases == null)   aliases=Collections.emptyMap();
  Class<?> keyCls=d.keyClass();
  Class<?> valCls=d.valueClass();
  assert keyCls != null;
  assert valCls != null;
  for (  Map.Entry<String,Class<?>> entry : meta.getAscendingFields().entrySet())   addToIndex(d,keyCls,valCls,entry.getKey(),entry.getValue(),0,IndexType.ASC,null,aliases,coCtx);
  for (  Map.Entry<String,Class<?>> entry : meta.getDescendingFields().entrySet())   addToIndex(d,keyCls,valCls,entry.getKey(),entry.getValue(),0,IndexType.DESC,null,aliases,coCtx);
  for (  String txtField : meta.getTextFields())   addToIndex(d,keyCls,valCls,txtField,String.class,0,IndexType.TEXT,null,aliases,coCtx);
  Map<String,LinkedHashMap<String,IgniteBiTuple<Class<?>,Boolean>>> grps=meta.getGroups();
  if (grps != null) {
    for (    Map.Entry<String,LinkedHashMap<String,IgniteBiTuple<Class<?>,Boolean>>> entry : grps.entrySet()) {
      String idxName=entry.getKey();
      LinkedHashMap<String,IgniteBiTuple<Class<?>,Boolean>> idxFields=entry.getValue();
      int order=0;
      for (      Map.Entry<String,IgniteBiTuple<Class<?>,Boolean>> idxField : idxFields.entrySet()) {
        Boolean descending=idxField.getValue().get2();
        if (descending == null)         descending=false;
        addToIndex(d,keyCls,valCls,idxField.getKey(),idxField.getValue().get1(),order,descending ? IndexType.DESC : IndexType.ASC,idxName,aliases,coCtx);
        order++;
      }
    }
  }
  for (  Map.Entry<String,Class<?>> entry : meta.getQueryFields().entrySet()) {
    ClassProperty prop=buildClassProperty(keyCls,valCls,entry.getKey(),entry.getValue(),aliases,coCtx);
    d.addProperty(prop,false);
  }
}

private void processClassMeta ( CacheTypeMetadata meta , TypeDescriptor d , CacheObjectContext coCtx ) throws IgniteCheckedException { Map < String , String > aliases = meta . getAliases ( ) ; if ( aliases == null ) aliases = Collections . emptyMap ( ) ; Class < ? > keyCls = d . keyClass ( ) ; Class < ? > valCls = d . valueClass ( ) ; assert keyCls != null ; assert valCls != null ; for ( Map . Entry < String , Class < ? > > entry : meta . getAscendingFields ( ) . entrySet ( ) ) addToIndex ( d , keyCls , valCls , entry . getKey ( ) , entry . getValue ( ) , 0 , IndexType . ASC , null , aliases , coCtx ) ; for ( Map . Entry < String , Class < ? > > entry : meta . getDescendingFields ( ) . entrySet ( ) ) addToIndex ( d , keyCls , valCls , entry . getKey ( ) , entry . getValue ( ) , 0 , IndexType . DESC , null , aliases , coCtx ) ; for ( String txtField : meta . getTextFields ( ) ) addToIndex ( d , keyCls , valCls , txtField , String . class , 0 , IndexType . TEXT , null , aliases , coCtx ) ; Map < String , LinkedHashMap < String , IgniteBiTuple < Class < ? > , Boolean > > > grps = meta . getGroups ( ) ; if ( grps != null ) { for ( Map . Entry < String , LinkedHashMap < String , IgniteBiTuple < Class < ? > , Boolean > > > entry : grps . entrySet ( ) ) { String idxName = entry . getKey ( ) ; LinkedHashMap < String , IgniteBiTuple < Class < ? > , Boolean > > idxFields = entry . getValue ( ) ; int order = 0 ; for ( Map . Entry < String , IgniteBiTuple < Class < ? > , Boolean > > idxField : idxFields . entrySet ( ) ) { Boolean descending = idxField . getValue ( ) . get2 ( ) ; if ( descending == null ) descending = false ; addToIndex ( d , keyCls , valCls , idxField . getKey ( ) , idxField . getValue ( ) . get1 ( ) , order , descending ? IndexType . DESC : IndexType . ASC , idxName , aliases , coCtx ) ; order ++ ; } } } for ( Map . Entry < String , Class < ? > > entry : meta . getQueryFields ( ) . entrySet ( ) ) { ClassProperty prop = buildClassProperty ( keyCls , valCls , entry . getKey ( ) , entry . getValue ( ) , aliases , coCtx ) ; d . addProperty ( prop , false ) ; } }
processes declarative metadata for class .
