0

I wonder if there is a difference between using the following filter construct:

  GoogleApiClient GAC;
  ...
  ArrayList<Filter> fltrs = new ArrayList<Filter>();
  fltrs.add(Filters.in(SearchableField.PARENTS, (DriveId)id));
  ...
  Query qry = new Query.Builder().addFilter(Filters.and(fltrs)).build();
  MetadataBufferResult rslt = Drive.DriveApi.query(GAC, query).await();

as opposed to

  DriveFolder dFld = Drive.DriveApi.getFolder(GAC, (DriveId)id)
  dFld.queryChildren(GAC, qry).await():

The 'queryChildren' seems redundant.

4

1 回答 1

0

不,它们在功能上是等效的。

于 2014-07-21T15:16:41.297 回答