/** * Removes all the files that match the given query. If no query is specified, all files are * removed * * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:remove-files-using-query-map} * * @param queryAttributes the optional query */ @Processor public void removeFilesUsingQueryMap( @Placement(group = "Query Attributes") @Optional Map<String, Object> queryAttributes) { client.removeFiles((DBObject) adapt(queryAttributes)); }
/** * Removes all the files that match the given query. If no query is specified, all files are * removed * * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:remove-files} * * @param query the {@link DBObject} optional query */ @Processor public void removeFiles(@Optional @Default("#[payload]") DBObject query) { client.removeFiles(from(query)); }