public class DynamoDbDataContext extends QueryPostprocessDataContext implements UpdateableDataContext, Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_NAME
The artificial schema name used by this DataContext.
|
static String |
SYSTEM_PROPERTY_THROUGHPUT_READ_CAPACITY
System property key used for getting the read throughput capacity when
creating new tables.
|
static String |
SYSTEM_PROPERTY_THROUGHPUT_WRITE_CAPACITY
System property key used for getting the write throughput capacity when
creating new tables.
|
INFORMATION_SCHEMA_NAME, SYSTEM_PROPERTY_CREATE_DEFAULT_TABLE_ALIAS| Constructor and Description |
|---|
DynamoDbDataContext() |
DynamoDbDataContext(com.amazonaws.services.dynamodbv2.AmazonDynamoDB client) |
DynamoDbDataContext(com.amazonaws.services.dynamodbv2.AmazonDynamoDB client,
SimpleTableDef[] tableDefs) |
DynamoDbDataContext(SimpleTableDef[] tableDefs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Number |
executeCountQuery(Table table,
List<FilterItem> whereItems,
boolean functionApproximationAllowed) |
protected Row |
executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
UpdateSummary |
executeUpdate(UpdateScript update) |
com.amazonaws.services.dynamodbv2.AmazonDynamoDB |
getDynamoDb() |
protected Schema |
getMainSchema() |
protected String |
getMainSchemaName() |
protected DataSet |
materializeMainSchemaTable(Table table,
List<Column> columns,
int maxRows) |
addConverter, executeQuery, getDefaultSchemaName, getSchemaByNameInternal, getSchemaNamesInternal, isMainSchemaTable, isScalarFunctionMaterialized, materializeFromItem, materializeMainSchemaTable, materializeMainSchemaTable, materializeMainSchemaTableSelect, materializeTablecompileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, onSchemaCacheRefreshed, parseQuery, query, refreshSchemasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompileQuery, executeQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, parseQuery, query, refreshSchemaspublic static final String SYSTEM_PROPERTY_THROUGHPUT_READ_CAPACITY
public static final String SYSTEM_PROPERTY_THROUGHPUT_WRITE_CAPACITY
public static final String SCHEMA_NAME
public DynamoDbDataContext()
public DynamoDbDataContext(SimpleTableDef[] tableDefs)
public DynamoDbDataContext(com.amazonaws.services.dynamodbv2.AmazonDynamoDB client)
public DynamoDbDataContext(com.amazonaws.services.dynamodbv2.AmazonDynamoDB client,
SimpleTableDef[] tableDefs)
public com.amazonaws.services.dynamodbv2.AmazonDynamoDB getDynamoDb()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected Schema getMainSchema() throws MetaModelException
getMainSchema in class QueryPostprocessDataContextMetaModelExceptionprotected String getMainSchemaName() throws MetaModelException
getMainSchemaName in class QueryPostprocessDataContextMetaModelExceptionprotected Number executeCountQuery(Table table, List<FilterItem> whereItems, boolean functionApproximationAllowed)
executeCountQuery in class QueryPostprocessDataContextprotected DataSet materializeMainSchemaTable(Table table, List<Column> columns, int maxRows)
materializeMainSchemaTable in class QueryPostprocessDataContextprotected Row executePrimaryKeyLookupQuery(Table table, List<SelectItem> selectItems, Column primaryKeyColumn, Object keyValue)
executePrimaryKeyLookupQuery in class QueryPostprocessDataContextpublic UpdateSummary executeUpdate(UpdateScript update)
executeUpdate in interface UpdateableDataContextCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.