|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.gora.dynamodb.store.DynamoDBMapping.DynamoDBMappingBuilder
public static class DynamoDBMapping.DynamoDBMappingBuilder
A builder for creating the mapper. This will allow building a thread safe
DynamoDBMapping using simple immutabilty.
| Constructor Summary | |
|---|---|
DynamoDBMapping.DynamoDBMappingBuilder()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(String tableName,
String attributeName,
String attrType,
int itemNumber)
Adds an attribute to an specific item |
DynamoDBMapping |
build()
Constructs the DynamoDBMapping object |
String |
getTableName(String tableName)
Gets the table name for which the table is being mapped |
void |
setHashKeySchema(String tableName,
String keyName,
String keyType)
Sets the hash key schema for the specified table |
void |
setHashRangeKeySchema(String tableName,
String rangeKeyName,
String rangeKeyType)
Sets the hash range key schema for the specified table |
void |
setProvisionedThroughput(String tableName,
long readCapUnits,
long writeCapUnits)
Sets the provisioned throughput for the specified table |
void |
setTableName(String tabName)
Sets table name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamoDBMapping.DynamoDBMappingBuilder()
| Method Detail |
|---|
public void setTableName(String tabName)
tabName - public String getTableName(String tableName)
tableName -
public void setProvisionedThroughput(String tableName,
long readCapUnits,
long writeCapUnits)
tableName - readCapUnits - writeCapUnits -
public void setHashRangeKeySchema(String tableName,
String rangeKeyName,
String rangeKeyType)
tableName - rangeKeyName - rangeKeyType -
public void setHashKeySchema(String tableName,
String keyName,
String keyType)
tableName - keyName - keyType -
public void addAttribute(String tableName,
String attributeName,
String attrType,
int itemNumber)
tableName - attributeName - attrType - itemNumber - public DynamoDBMapping build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||