public static Schema subSetOf ( Schema schema , String ... subSetFields ) { return subSetOf ( "subSetSchema" + ( COUNTER ++ ) , schema , subSetFields ) ; }
Creates a subset of the input Schema exactly with the fields whose names are specified . The name of the schema is auto - generated with a static counter .