code: public static String serialize(StreamSchema schema) {
      StringBuilder builder = new StringBuilder();
      int fieldCount = 1;
      for (GDATField field : schema.getFields()) {
        builder.append(field.getType().getTypeName()).append(" ").append(field.getName()).append(" get_gdat_")
          .append(field.getType().getTypeName()).append("_pos").append(fieldCount);
        builder.append(field.getSlidingWindowType().getAttribute());
        builder.append(";").append(Constants.NEWLINE);
        fieldCount++;
      }
      return builder.toString();
    }
docs: Sample Schema String:
  ullong timestamp get_gdat_ullong_pos1 (increasing);
  uint istream get_gdata_uint_pos2;