Package io.inversion.dynamodb
Class DynamoDb<T extends DynamoDb>
java.lang.Object
io.inversion.Rule<T>
io.inversion.Db<T>
io.inversion.dynamodb.DynamoDb<T>
- All Implemented Interfaces:
Comparable<T>
public class DynamoDb<T extends DynamoDb>
extends io.inversion.Db<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
io.inversion.Rule.RuleMatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected final intprotected com.amazonaws.services.dynamodbv2.AmazonDynamoDBstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class io.inversion.Db
bootstrap, collections, dryRun, excludeColumns, includeColumns, includeTables, log, reservedParams, typeFields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, name, order, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.inversion.IndexaddTableIndex(String type, String indexName, List<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> keySchemaList, io.inversion.Collection collection, boolean unique, com.amazonaws.services.dynamodbv2.model.Projection projection, io.inversion.Index primaryIndex) protected io.inversion.CollectionbuildCollection(String tableName, String collectionName) static com.amazonaws.services.dynamodbv2.AmazonDynamoDBbuildDynamoClient(String awsRegion, String awsAccessKey, String awsSecretKey, String awsEndpoint) protected com.amazonaws.services.dynamodbv2.document.spec.UpdateItemSpecbuildUpdateItemSpec(io.inversion.Collection collection, Map<String, Object> row) voidconfigDb()voidvoidio.inversion.Resultsio.inversion.Resultsstatic io.inversion.IndexfindIndexByName(io.inversion.Collection coll, String name) com.amazonaws.services.dynamodbv2.AmazonDynamoDBcom.amazonaws.services.dynamodbv2.document.TablegetDynamoTable(io.inversion.Collection table) com.amazonaws.services.dynamodbv2.document.TablegetDynamoTable(String tableName) protected static StringTODO: update all calls to DynamoDb to use this method to have consistent error handling.toString()withAwsAccessKey(String awsAccessKey) withAwsEndpoint(String awsEndpoint) withAwsRegion(String awsRegion) withAwsSecretKey(String awsSecretKey) Methods inherited from class io.inversion.Db
beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, delete, doPatch, doShutdown, doShutdown, doStartup, excludeTable, filterOutJsonProperty, getCollection, getCollectionByTableName, getCollections, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapToColumnNames, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withTypeMethods inherited from class io.inversion.Rule
afterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParams
-
Field Details
-
PRIMARY_INDEX_NAME
- See Also:
-
PRIMARY_INDEX_TYPE
- See Also:
-
LOCAL_SECONDARY_INDEX_TYPE
- See Also:
-
GLOBAL_SECONDARY_INDEX_TYPE
- See Also:
-
batchMax
protected final int batchMax- See Also:
-
awsAccessKey
-
awsSecretKey
-
awsRegion
-
awsEndpoint
-
dynamoClient
protected transient com.amazonaws.services.dynamodbv2.AmazonDynamoDB dynamoClient
-
-
Constructor Details
-
DynamoDb
public DynamoDb() -
DynamoDb
-
-
Method Details
-
findIndexByName
-
getTypeStringFromObject
-
buildDynamoClient
-
doSelect
public io.inversion.Results doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> columnMappedTerms) throws io.inversion.ApiException -
doSelect0
public io.inversion.Results doSelect0(io.inversion.Collection table, List<io.inversion.rql.Term> columnMappedTerms) throws io.inversion.ApiException - Throws:
io.inversion.ApiException
-
doUpsert
-
buildUpdateItemSpec
-
doDelete
-
run
TODO: update all calls to DynamoDb to use this method to have consistent error handling.- Parameters:
statement-- Returns:
-
deleteRow
public void deleteRow(io.inversion.Collection table, Map<String, Object> row) throws io.inversion.ApiException- Throws:
io.inversion.ApiException
-
configDb
public void configDb() throws io.inversion.ApiException -
buildCollection
-
addTableIndex
-
getDynamoTable
public com.amazonaws.services.dynamodbv2.document.Table getDynamoTable(io.inversion.Collection table) -
getDynamoTable
-
withAwsRegion
-
withAwsAccessKey
-
withAwsSecretKey
-
withAwsEndpoint
-
toString
-
getDynamoClient
public com.amazonaws.services.dynamodbv2.AmazonDynamoDB getDynamoClient()
-