public final class EnhancedClientUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
cleanAttributeName(String key)
There is a divergence in what constitutes an acceptable attribute name versus a token used in expression
names or values.
|
static <T> Key |
createKeyFromItem(T item,
TableSchema<T> tableSchema,
String indexName) |
static <T> List<T> |
getItemsFromSupplier(List<Supplier<T>> itemSupplierList) |
static <ResponseT,ItemT> |
readAndTransformPaginatedItems(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension,
Function<ResponseT,List<Map<String,AttributeValue>>> getItems,
Function<ResponseT,Map<String,AttributeValue>> getLastEvaluatedKey) |
static <T> T |
readAndTransformSingleItem(Map<String,AttributeValue> itemMap,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
public static String cleanAttributeName(String key)
key
- A key that may contain non alpha-numeric characters acceptable to a DynamoDb attribute name.public static <T> T readAndTransformSingleItem(Map<String,AttributeValue> itemMap, TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
public static <ResponseT,ItemT> Page<ItemT> readAndTransformPaginatedItems(ResponseT response, TableSchema<ItemT> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension, Function<ResponseT,List<Map<String,AttributeValue>>> getItems, Function<ResponseT,Map<String,AttributeValue>> getLastEvaluatedKey)
public static <T> Key createKeyFromItem(T item, TableSchema<T> tableSchema, String indexName)
Copyright © 2020. All rights reserved.