/** * Recursively set NULL type to the specifid type in a schema * @param s the schema whose NULL type has to be set * @param t the specified type */ public static void setSchemaDefaultType(Schema s, byte t) { if(null == s) return; for(Schema.FieldSchema fs: s.getFields()) { FieldSchema.setFieldSchemaDefaultType(fs, t); } }