コード例 #1
0
 /**
  * Lists all the files that match the given query, sorting them by filename. If no query is
  * specified, all files are listed.
  *
  * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:list-files-using-query-map}
  *
  * @param queryAttributes the optional query
  * @return an iterable of {@link DBObject}
  */
 @Processor
 public Iterable<DBObject> listFilesUsingQueryMap(
     @Placement(group = "Query Attributes") @Optional Map<String, Object> queryAttributes) {
   return client.listFiles((DBObject) adapt(queryAttributes));
 }
コード例 #2
0
 /**
  * Lists all the files that match the given query, sorting them by filename. If no query is
  * specified, all files are listed.
  *
  * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:list-files}
  *
  * @param query the {@link DBObject} optional query
  * @return an iterable of {@link DBObject}
  */
 @Processor
 public Iterable<DBObject> listFiles(@Optional @Default("#[payload]") DBObject query) {
   return client.listFiles(from(query));
 }