public static boolean isAtomicUpdate(final AddUpdateCommand cmd){
  SolrInputDocument sdoc=cmd.getSolrInputDocument();
  for (  SolrInputField sif : sdoc.values()) {
    if (sif.getValue() instanceof Map) {
      return true;
    }
  }
  return false;
}

public static boolean isAtomicUpdate ( final AddUpdateCommand cmd ) { SolrInputDocument sdoc = cmd . getSolrInputDocument ( ) ; for ( SolrInputField sif : sdoc . values ( ) ) { if ( sif . getValue ( ) instanceof Map ) { return true ; } } return false ; }
utility method that examines the solrinputdocument in an addupdatecommand and returns true if the documents contains atomic update instructions .
