public static String convertBooleanArrToString(Boolean[] noDictionaryDimsMapping){
  StringBuilder builder=new StringBuilder();
  int index=0;
  for (; index < noDictionaryDimsMapping.length; index++) {
    builder.append(noDictionaryDimsMapping[index]);
    builder.append(CarbonCommonConstants.COMA_SPC_CHARACTER);
  }
  int lastIndex=builder.lastIndexOf(CarbonCommonConstants.COMA_SPC_CHARACTER);
  String str=-1 != lastIndex ? builder.substring(0,lastIndex) : builder.toString();
  return str;
}

public static String convertBooleanArrToString ( Boolean [ ] noDictionaryDimsMapping ) { StringBuilder builder = new StringBuilder ( ) ; int index = 0 ; for ( ; index < noDictionaryDimsMapping . length ; index ++ ) { builder . append ( noDictionaryDimsMapping [ index ] ) ; builder . append ( CarbonCommonConstants . COMA_SPC_CHARACTER ) ; } int lastIndex = builder . lastIndexOf ( CarbonCommonConstants . COMA_SPC_CHARACTER ) ; String str = - 1 != lastIndex ? builder . substring ( 0 , lastIndex ) : builder . toString ( ) ; return str ; }
this method will convert boolean [ ] to string with comma separated . this needs to be done as sort step meta only supports string types .
