/** * Set the schema for this field. Type tuple/bag/map may have a schema. * @param schema new schema * @return this */ public ResourceFieldSchema setSchema(ResourceSchema schema) throws IOException { validateSchema(schema); this.schema = schema; return this; }