Свойство | Type | Description | |
---|---|---|---|
DATASET_NAME_PATTERN | string | ||
UNKNOWN_IDENTITY_ID | string |
Méthode | Description | |
---|---|---|
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. |
Résultat | long |
public static GetIdentityId ( |
||
credentials | The Cognito Credentials. | |
Résultat | string |
public static TruncateToSeconds ( System.DateTime dateTime ) : System.DateTime | ||
dateTime | System.DateTime | The DateTime to be truncated. |
Résultat | System.DateTime |
public static ValidateDatasetName ( string datasetName ) : string | ||
datasetName | string | Dataset name. |
Résultat | string |
public static ValidateRecordKey ( string key ) : string | ||
key | string | Key. |
Résultat | string |
public static string DATASET_NAME_PATTERN | ||
Résultat | string |