Package alluxio.proxy.s3
Class ListBucketResult
- java.lang.Object
-
- alluxio.proxy.s3.ListBucketResult
-
public class ListBucketResult extends java.lang.ObjectGet bucket result defined in https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html It will be encoded into an XML string to be returned as a response for the REST call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classListBucketResult.CommonPrefixesCommon Prefixes list placeholder object.classListBucketResult.ContentObject metadata class.
-
Constructor Summary
Constructors Constructor Description ListBucketResult()Creates anListBucketResult.ListBucketResult(java.lang.String bucketName, java.util.List<alluxio.client.file.URIStatus> children, ListBucketOptions options)Creates anListBucketResult.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBucketResult.CommonPrefixesgetCommonPrefixes()java.util.List<ListBucketResult.Content>getContents()java.lang.StringgetDelimiter()java.lang.StringgetEncodingType()intgetKeyCount()java.lang.StringgetMarker()intgetMaxKeys()java.lang.StringgetName()java.lang.StringgetNextMarker()java.lang.StringgetPrefix()booleanisTruncated()
-
-
-
Constructor Detail
-
ListBucketResult
public ListBucketResult()
Creates anListBucketResult.
-
ListBucketResult
public ListBucketResult(java.lang.String bucketName, java.util.List<alluxio.client.file.URIStatus> children, ListBucketOptions options)Creates anListBucketResult.- Parameters:
bucketName- the bucket namechildren- a list ofURIStatus, representing the objects and common prefixesoptions- the list bucket options
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the bucket name
-
getKeyCount
public int getKeyCount()
- Returns:
- the number of keys included in the response
-
getMaxKeys
public int getMaxKeys()
- Returns:
- the number of keys included in the response
-
isTruncated
public boolean isTruncated()
- Returns:
- false if all results are returned, otherwise true
-
getPrefix
public java.lang.String getPrefix()
- Returns:
- the prefix
-
getDelimiter
public java.lang.String getDelimiter()
- Returns:
- the delimiter
-
getEncodingType
public java.lang.String getEncodingType()
- Returns:
- the encoding type of the result
-
getMarker
public java.lang.String getMarker()
- Returns:
- the marker
-
getNextMarker
public java.lang.String getNextMarker()
- Returns:
- the next marker
-
getContents
public java.util.List<ListBucketResult.Content> getContents()
- Returns:
- the list of contents
-
getCommonPrefixes
public ListBucketResult.CommonPrefixes getCommonPrefixes()
- Returns:
- the common prefixes
-
-