public Schema schema ( TableSchema schema ) { tableSchema . clear ( ) ; lastField = null ; for ( int i = 0 ; i < schema . getFieldCount ( ) ; i ++ ) { field ( schema . getFieldName ( i ) . get ( ) , schema . getFieldType ( i ) . get ( ) ) ; } return this ; }
Sets the schema with field names and the types . Required .