프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DATASET_NAME_PATTERN | string | ||
UNKNOWN_IDENTITY_ID | string |
메소드 | 설명 | |
---|---|---|
ComputeRecordSize ( Record record ) : long |
A helper function to compute record size which equals the sum of the UTF-8 string length of record key and value. 0 if record is null.
|
|
GetIdentityId ( |
A helper function to get the identity id of the dataset from credentials provider. If the identity id is null, UNKNOWN_IDENTITY_ID will be returned.
|
|
TruncateToSeconds ( System.DateTime dateTime ) : System.DateTime |
A helper function to truncate a DateTime object to whole seconds.
|
|
ValidateDatasetName ( string datasetName ) : string |
Validates the dataset name.
|
|
ValidateRecordKey ( string key ) : string |
Validates the record key. It must be non empty and its length must be no greater than 128. Otherwise {@link IllegalArgumentException} will be thrown.
|
public static ComputeRecordSize ( Record record ) : long | ||
record | Record | Record. |
리턴 | long |
public static GetIdentityId ( |
||
credentials | The Cognito Credentials. | |
리턴 | string |
public static TruncateToSeconds ( System.DateTime dateTime ) : System.DateTime | ||
dateTime | System.DateTime | The DateTime to be truncated. |
리턴 | System.DateTime |
public static ValidateDatasetName ( string datasetName ) : string | ||
datasetName | string | Dataset name. |
리턴 | string |
public static ValidateRecordKey ( string key ) : string | ||
key | string | Key. |
리턴 | string |