public void clear(){
  if (documents != null) {
    documents.clear();
  }
  if (deleteById != null) {
    deleteById.clear();
  }
  if (deleteQuery != null) {
    deleteQuery.clear();
  }
}

public void clear ( ) { if ( documents != null ) { documents . clear ( ) ; } if ( deleteById != null ) { deleteById . clear ( ) ; } if ( deleteQuery != null ) { deleteQuery . clear ( ) ; } }
clear the pending documents and delete commands
