public static String displayInputs(String name,Map<String,Object> map,LocalVariableMap symbolTable){
  StringBuilder sb=new StringBuilder();
  sb.append(name);
  sb.append(":\n");
  Set<String> keys=map.keySet();
  if (keys.isEmpty()) {
    sb.append("None\n");
  }
 else {
    int count=0;
    for (    String key : keys) {
      Object object=map.get(key);
      @SuppressWarnings("rawtypes") Class clazz=object.getClass();
      String type=clazz.getSimpleName();
      if (object instanceof JavaRDD<?>) {
        type="JavaRDD";
      }
 else       if (object instanceof RDD<?>) {
        type="RDD";
      }
      sb.append("  [");
      sb.append(++count);
      sb.append("]");
      sb.append(" (");
      sb.append(type);
      if (doesSymbolTableContainMatrixObject(symbolTable,key)) {
        sb.append(" as Matrix");
      }
 else       if (doesSymbolTableContainFrameObject(symbolTable,key)) {
        sb.append(" as Frame");
      }
      sb.append(") ");
      sb.append(key);
      sb.append(": ");
      String str=object.toString();
      str=StringUtils.abbreviate(str,100);
      sb.append(str);
      sb.append("\n");
    }
  }
  return sb.toString();
}

public static String displayInputs ( String name , Map < String , Object > map , LocalVariableMap symbolTable ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( name ) ; sb . append ( ":\n" ) ; Set < String > keys = map . keySet ( ) ; if ( keys . isEmpty ( ) ) { sb . append ( "None\n" ) ; } else { int count = 0 ; for ( String key : keys ) { Object object = map . get ( key ) ; @ SuppressWarnings ( "rawtypes" ) Class clazz = object . getClass ( ) ; String type = clazz . getSimpleName ( ) ; if ( object instanceof JavaRDD < ? > ) { type = "JavaRDD" ; } else if ( object instanceof RDD < ? > ) { type = "RDD" ; } sb . append ( "  [" ) ; sb . append ( ++ count ) ; sb . append ( "]" ) ; sb . append ( " (" ) ; sb . append ( type ) ; if ( doesSymbolTableContainMatrixObject ( symbolTable , key ) ) { sb . append ( " as Matrix" ) ; } else if ( doesSymbolTableContainFrameObject ( symbolTable , key ) ) { sb . append ( " as Frame" ) ; } sb . append ( ") " ) ; sb . append ( key ) ; sb . append ( ": " ) ; String str = object . toString ( ) ; str = StringUtils . abbreviate ( str , 100 ) ; sb . append ( str ) ; sb . append ( "\n" ) ; } } return sb . toString ( ) ; }
obtain a display of script inputs .
