Package org.apache.hadoop.ozone.s3.util
Class ContinueToken
java.lang.Object
org.apache.hadoop.ozone.s3.util.ContinueToken
Token which holds enough information to continue the key iteration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContinueTokendecodeFromString(String key) Decode a continuation token which is used in get Bucket.Generate a continuation token which is used in get Bucket.booleaninthashCode()voidsetLastDir(String lastDir) voidsetLastKey(String lastKey) toString()
-
Constructor Details
-
ContinueToken
-
-
Method Details
-
encodeToString
Generate a continuation token which is used in get Bucket.- Returns:
- if key is not null return continuation token, else returns null.
-
decodeFromString
Decode a continuation token which is used in get Bucket.- Parameters:
key-- Returns:
- if key is not null return decoded token, otherwise returns null.
- Throws:
OS3Exception
-
getLastKey
-
setLastKey
-
getLastDir
-
setLastDir
-
equals
-
hashCode
public int hashCode() -
toString
-