count All
Returns a count of all the objects in this object container, optionally filtered by a given path prefix.
If no path prefix is provided, all paths in this object container will be counted regardless of nested directory depth.
If a path prefix is provided, only paths in this object container whose path name begins with pathPrefix will be counted.
Return
A count of 0 or more paths that exist in this object container that optionally meet the filtering criteria.
Parameters
Optional filtering prefix. When provided, this will filter the counted paths to only those starting with this value.
Throws
If this bucket or the bucket in which this object container resides no longer exists.
If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.
Returns a count of all the objects in this object container, filtered by the given predicate function.
The given predicate function will be given each path individually, only those paths on which the predicate returns true will be counted.
Return
A count of 0 or more paths that exist in this object container that also meet the given predicate's criteria.
Parameters
Predicate that will be used to determine which paths to count and which not to.
Throws
If this bucket or the bucket in which this object container resides no longer exists.
If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.