code: public void putTableSchema(String key, TableSchema schema) {
  		checkNotNull(key);
  		checkNotNull(schema);
  
  		final String[] fieldNames = schema.getFieldNames();
  		final TypeInformation<?>[] fieldTypes = schema.getFieldTypes();
  
  		final List<List<String>> values = new ArrayList<>();
  		for (int i = 0; i < schema.getFieldCount(); i++) {
  			values.add(Arrays.asList(fieldNames[i], TypeStringUtils.writeTypeInfo(fieldTypes[i])));
  		}
  
  		putIndexedFixedProperties(
  			key,
  			Arrays.asList(TABLE_SCHEMA_NAME, TABLE_SCHEMA_TYPE),
  			values);
  	}
docs: Adds a table schema under the given key.