Class S3ObjectListing
java.lang.Object
com.northconcepts.datapipeline.amazons3.S3ObjectListing
A backend-neutral, single page of an S3 object listing, returned by
AmazonS3FileSystem.listRootFolder(String),
AmazonS3FileSystem.listFolder(String, String) and
AmazonS3FileSystem.nextBatch(S3ObjectListing).
It also retains the bucketName, prefix and nextContinuationToken
needed to request the following page, so callers can paginate without touching any AWS
SDK classes.
-
Constructor Summary
ConstructorsConstructorDescriptionS3ObjectListing(String bucketName, String prefix, List<S3ObjectSummary> objectSummaries, List<String> commonPrefixes, boolean truncated, String nextContinuationToken) -
Method Summary
Modifier and TypeMethodDescriptionReturns the key prefixes rolled up by the file system'sdelimiter(nevernull).Returns the objects in this page (nevernull).Returns the key prefix (folder) that was listed ornullfor a bucket's root folder.booleanIndicates if more results (objects or common prefixes) remain; pass this listing toAmazonS3FileSystem.nextBatch(S3ObjectListing)to get the next page.toString()
-
Constructor Details
-
S3ObjectListing
-
-
Method Details
-
getBucketName
-
getPrefix
Returns the key prefix (folder) that was listed ornullfor a bucket's root folder. -
getObjectSummaries
Returns the objects in this page (nevernull). -
getCommonPrefixes
Returns the key prefixes rolled up by the file system'sdelimiter(nevernull). -
isTruncated
public boolean isTruncated()Indicates if more results (objects or common prefixes) remain; pass this listing toAmazonS3FileSystem.nextBatch(S3ObjectListing)to get the next page. -
getNextContinuationToken
-
toString
-