public final class AsyncDynamoDBExecutor extends Object
DynamoDBExecutor
.Modifier and Type | Method and Description |
---|---|
com.landawn.abacus.util.ContinuableFuture<Map<String,List<Map<String,Object>>>> |
batchGetItem(com.amazonaws.services.dynamodbv2.model.BatchGetItemRequest batchGetItemRequest)
Batch get item.
|
<T> com.landawn.abacus.util.ContinuableFuture<Map<String,List<T>>> |
batchGetItem(Class<T> targetClass,
com.amazonaws.services.dynamodbv2.model.BatchGetItemRequest batchGetItemRequest)
Batch get item.
|
<T> com.landawn.abacus.util.ContinuableFuture<Map<String,List<T>>> |
batchGetItem(Class<T> targetClass,
Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems)
Batch get item.
|
<T> com.landawn.abacus.util.ContinuableFuture<Map<String,List<T>>> |
batchGetItem(Class<T> targetClass,
Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems,
String returnConsumedCapacity)
Batch get item.
|
com.landawn.abacus.util.ContinuableFuture<Map<String,List<Map<String,Object>>>> |
batchGetItem(Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems)
Batch get item.
|
com.landawn.abacus.util.ContinuableFuture<Map<String,List<Map<String,Object>>>> |
batchGetItem(Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems,
String returnConsumedCapacity)
Batch get item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.BatchWriteItemResult> |
batchWriteItem(com.amazonaws.services.dynamodbv2.model.BatchWriteItemRequest batchWriteItemRequest)
Batch write item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.BatchWriteItemResult> |
batchWriteItem(Map<String,List<com.amazonaws.services.dynamodbv2.model.WriteRequest>> requestItems)
Batch write item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.DeleteItemResult> |
deleteItem(com.amazonaws.services.dynamodbv2.model.DeleteItemRequest deleteItemRequest)
Delete item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.DeleteItemResult> |
deleteItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key)
Delete item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.DeleteItemResult> |
deleteItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key,
String returnValues)
Delete item.
|
<T> com.landawn.abacus.util.ContinuableFuture<T> |
getItem(Class<T> targetClass,
com.amazonaws.services.dynamodbv2.model.GetItemRequest getItemRequest)
Gets the item.
|
<T> com.landawn.abacus.util.ContinuableFuture<T> |
getItem(Class<T> targetClass,
String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key)
Gets the item.
|
<T> com.landawn.abacus.util.ContinuableFuture<T> |
getItem(Class<T> targetClass,
String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key,
Boolean consistentRead)
Gets the item.
|
com.landawn.abacus.util.ContinuableFuture<Map<String,Object>> |
getItem(com.amazonaws.services.dynamodbv2.model.GetItemRequest getItemRequest)
Gets the item.
|
com.landawn.abacus.util.ContinuableFuture<Map<String,Object>> |
getItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key)
Gets the item.
|
com.landawn.abacus.util.ContinuableFuture<Map<String,Object>> |
getItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key,
Boolean consistentRead)
Gets the item.
|
<T> com.landawn.abacus.util.ContinuableFuture<List<T>> |
list(Class<T> targetClass,
com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
List.
|
com.landawn.abacus.util.ContinuableFuture<List<Map<String,Object>>> |
list(com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
List.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.PutItemResult> |
putItem(com.amazonaws.services.dynamodbv2.model.PutItemRequest putItemRequest)
Put item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.PutItemResult> |
putItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> item)
Put item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.PutItemResult> |
putItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> item,
String returnValues)
Put item.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.DataSet> |
query(Class<T> targetClass,
com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
Query.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.DataSet> |
query(com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
Query.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
com.amazonaws.services.dynamodbv2.model.ScanRequest scanRequest)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
List<String> attributesToGet)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
List<String> attributesToGet,
Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> |
scan(com.amazonaws.services.dynamodbv2.model.ScanRequest scanRequest)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> |
scan(String tableName,
List<String> attributesToGet)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> |
scan(String tableName,
List<String> attributesToGet,
Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> |
scan(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
stream(Class<T> targetClass,
com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
Stream.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> |
stream(com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
Stream.
|
DynamoDBExecutor |
sync()
Sync.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.UpdateItemResult> |
updateItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> attributeUpdates)
Update item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.UpdateItemResult> |
updateItem(String tableName,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key,
Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> attributeUpdates,
String returnValues)
Update item.
|
com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.UpdateItemResult> |
updateItem(com.amazonaws.services.dynamodbv2.model.UpdateItemRequest updateItemRequest)
Update item.
|
public DynamoDBExecutor sync()
public com.landawn.abacus.util.ContinuableFuture<Map<String,Object>> getItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key)
tableName
- the table namekey
- the keypublic com.landawn.abacus.util.ContinuableFuture<Map<String,Object>> getItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key, Boolean consistentRead)
tableName
- the table namekey
- the keyconsistentRead
- the consistent readpublic com.landawn.abacus.util.ContinuableFuture<Map<String,Object>> getItem(com.amazonaws.services.dynamodbv2.model.GetItemRequest getItemRequest)
getItemRequest
- the get item requestpublic <T> com.landawn.abacus.util.ContinuableFuture<T> getItem(Class<T> targetClass, String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key)
T
- the generic typetargetClass
- the target classtableName
- the table namekey
- the keypublic <T> com.landawn.abacus.util.ContinuableFuture<T> getItem(Class<T> targetClass, String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key, Boolean consistentRead)
T
- the generic typetargetClass
- the target classtableName
- the table namekey
- the keyconsistentRead
- the consistent readpublic <T> com.landawn.abacus.util.ContinuableFuture<T> getItem(Class<T> targetClass, com.amazonaws.services.dynamodbv2.model.GetItemRequest getItemRequest)
T
- the generic typetargetClass
- the target classgetItemRequest
- the get item requestpublic com.landawn.abacus.util.ContinuableFuture<Map<String,List<Map<String,Object>>>> batchGetItem(Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems)
requestItems
- the request itemspublic com.landawn.abacus.util.ContinuableFuture<Map<String,List<Map<String,Object>>>> batchGetItem(Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems, String returnConsumedCapacity)
requestItems
- the request itemsreturnConsumedCapacity
- the return consumed capacitypublic com.landawn.abacus.util.ContinuableFuture<Map<String,List<Map<String,Object>>>> batchGetItem(com.amazonaws.services.dynamodbv2.model.BatchGetItemRequest batchGetItemRequest)
batchGetItemRequest
- the batch get item requestpublic <T> com.landawn.abacus.util.ContinuableFuture<Map<String,List<T>>> batchGetItem(Class<T> targetClass, Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems)
T
- the generic typetargetClass
- the target classrequestItems
- the request itemspublic <T> com.landawn.abacus.util.ContinuableFuture<Map<String,List<T>>> batchGetItem(Class<T> targetClass, Map<String,com.amazonaws.services.dynamodbv2.model.KeysAndAttributes> requestItems, String returnConsumedCapacity)
T
- the generic typetargetClass
- the target classrequestItems
- the request itemsreturnConsumedCapacity
- the return consumed capacitypublic <T> com.landawn.abacus.util.ContinuableFuture<Map<String,List<T>>> batchGetItem(Class<T> targetClass, com.amazonaws.services.dynamodbv2.model.BatchGetItemRequest batchGetItemRequest)
T
- the generic typetargetClass
- the target classbatchGetItemRequest
- the batch get item requestpublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.PutItemResult> putItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> item)
tableName
- the table nameitem
- the itempublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.PutItemResult> putItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> item, String returnValues)
tableName
- the table nameitem
- the itemreturnValues
- the return valuespublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.PutItemResult> putItem(com.amazonaws.services.dynamodbv2.model.PutItemRequest putItemRequest)
putItemRequest
- the put item requestpublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.BatchWriteItemResult> batchWriteItem(Map<String,List<com.amazonaws.services.dynamodbv2.model.WriteRequest>> requestItems)
requestItems
- the request itemspublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.BatchWriteItemResult> batchWriteItem(com.amazonaws.services.dynamodbv2.model.BatchWriteItemRequest batchWriteItemRequest)
batchWriteItemRequest
- the batch write item requestpublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.UpdateItemResult> updateItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> attributeUpdates)
tableName
- the table namekey
- the keyattributeUpdates
- the attribute updatespublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.UpdateItemResult> updateItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValueUpdate> attributeUpdates, String returnValues)
tableName
- the table namekey
- the keyattributeUpdates
- the attribute updatesreturnValues
- the return valuespublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.UpdateItemResult> updateItem(com.amazonaws.services.dynamodbv2.model.UpdateItemRequest updateItemRequest)
updateItemRequest
- the update item requestpublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.DeleteItemResult> deleteItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key)
tableName
- the table namekey
- the keypublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.DeleteItemResult> deleteItem(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> key, String returnValues)
tableName
- the table namekey
- the keyreturnValues
- the return valuespublic com.landawn.abacus.util.ContinuableFuture<com.amazonaws.services.dynamodbv2.model.DeleteItemResult> deleteItem(com.amazonaws.services.dynamodbv2.model.DeleteItemRequest deleteItemRequest)
deleteItemRequest
- the delete item requestpublic com.landawn.abacus.util.ContinuableFuture<List<Map<String,Object>>> list(com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
queryRequest
- the query requestpublic <T> com.landawn.abacus.util.ContinuableFuture<List<T>> list(Class<T> targetClass, com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
T
- the generic typetargetClass
- the target classqueryRequest
- the query requestpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.DataSet> query(com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
queryRequest
- the query requestpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.DataSet> query(Class<T> targetClass, com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
T
- the generic typetargetClass
- the target classqueryRequest
- the query requestpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> stream(com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
queryRequest
- the query requestpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> stream(Class<T> targetClass, com.amazonaws.services.dynamodbv2.model.QueryRequest queryRequest)
T
- the generic typetargetClass
- the target classqueryRequest
- the query requestpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> scan(String tableName, List<String> attributesToGet)
tableName
- the table nameattributesToGet
- the attributes to getpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> scan(String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
tableName
- the table namescanFilter
- the scan filterpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> scan(String tableName, List<String> attributesToGet, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
tableName
- the table nameattributesToGet
- the attributes to getscanFilter
- the scan filterpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<Map<String,Object>>> scan(com.amazonaws.services.dynamodbv2.model.ScanRequest scanRequest)
scanRequest
- the scan requestpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, List<String> attributesToGet)
T
- the generic typetargetClass
- the target classtableName
- the table nameattributesToGet
- the attributes to getpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
T
- the generic typetargetClass
- the target classtableName
- the table namescanFilter
- the scan filterpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, List<String> attributesToGet, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> scanFilter)
T
- the generic typetargetClass
- the target classtableName
- the table nameattributesToGet
- the attributes to getscanFilter
- the scan filterpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, com.amazonaws.services.dynamodbv2.model.ScanRequest scanRequest)
T
- the generic typetargetClass
- the target classscanRequest
- the scan requestCopyright © 2019. All rights reserved.