public void registerDynamicFields(SchemaField... fields){
  List<DynamicField> dynFields=new ArrayList<>(Arrays.asList(dynamicFields));
  for (  SchemaField field : fields) {
    if (isDuplicateDynField(dynFields,field)) {
      log.debug("dynamic field already exists: dynamic field: [" + field.getName() + "]");
    }
 else {
      log.debug("dynamic field creation for schema field: " + field.getName());
      addDynamicFieldNoDupCheck(dynFields,field);
    }
  }
  Collections.sort(dynFields);
  dynamicFields=dynFields.toArray(new DynamicField[dynFields.size()]);
}

public void registerDynamicFields ( SchemaField ... fields ) { List < DynamicField > dynFields = new ArrayList < > ( Arrays . asList ( dynamicFields ) ) ; for ( SchemaField field : fields ) { if ( isDuplicateDynField ( dynFields , field ) ) { log . debug ( "dynamic field already exists: dynamic field: [" + field . getName ( ) + "]" ) ; } else { log . debug ( "dynamic field creation for schema field: " + field . getName ( ) ) ; addDynamicFieldNoDupCheck ( dynFields , field ) ; } } Collections . sort ( dynFields ) ; dynamicFields = dynFields . toArray ( new DynamicField [ dynFields . size ( ) ] ) ; }
register one or more new dynamic fields with the schema .
