void executeBulk ( final TSDB tsdb , final HttpMethod method , HttpQuery query ) { if ( method == HttpMethod . POST || method == HttpMethod . PUT ) { executeBulkUpdate ( tsdb , method , query ) ; } else if ( method == HttpMethod . DELETE ) { executeBulkDelete ( tsdb , query ) ; } else { throw new BadRequestException ( HttpResponseStatus . METHOD_NOT_ALLOWED , "Method not allowed" , "The HTTP method [" + query . method ( ) . getName ( ) + "] is not permitted for this endpoint" ) ; } }
Performs CRUD methods on a list of annotation objects to reduce calls to the API .