org.apache.gora.dynamodb.store
Class DynamoDBMapping

java.lang.Object
  extended by org.apache.gora.dynamodb.store.DynamoDBMapping

public class DynamoDBMapping
extends Object


Nested Class Summary
static class DynamoDBMapping.DynamoDBMappingBuilder
          A builder for creating the mapper.
 
Field Summary
static org.slf4j.Logger LOG
          Helper to write useful information into the logs
 
Constructor Summary
DynamoDBMapping(Map<String,List<Map<String,String>>> tables, Map<String,com.amazonaws.services.dynamodb.model.KeySchema> tablesToKeySchemas, Map<String,com.amazonaws.services.dynamodb.model.ProvisionedThroughput> provisionedThroughput)
          Constructor for DynamoDBMapping
 
Method Summary
 List<Map<String,String>> getItems(String tableName)
          Gets items or attributes from a specific table
 com.amazonaws.services.dynamodb.model.KeySchema getKeySchema(String tableName)
          Gets the key schema from a specific table
 com.amazonaws.services.dynamodb.model.ProvisionedThroughput getProvisionedThroughput(String tableName)
          Gets the provisioned throughput from a specific table
 Map<String,List<Map<String,String>>> getTables()
          Gets the tables with their own items
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Helper to write useful information into the logs

Constructor Detail

DynamoDBMapping

public DynamoDBMapping(Map<String,List<Map<String,String>>> tables,
                       Map<String,com.amazonaws.services.dynamodb.model.KeySchema> tablesToKeySchemas,
                       Map<String,com.amazonaws.services.dynamodb.model.ProvisionedThroughput> provisionedThroughput)
Constructor for DynamoDBMapping

Parameters:
tables - Tables mapped.
tablesToKeySchemas - KeySchemas used within tables mapped.
provisionedThroughput - Provisioned throughput used within tables mapped.
Method Detail

getTables

public Map<String,List<Map<String,String>>> getTables()
Gets the tables with their own items

Returns:
tablesToItem HashMap

getItems

public List<Map<String,String>> getItems(String tableName)
Gets items or attributes from a specific table

Parameters:
tableName - Table name to determine which attributes to get
Returns:

getKeySchema

public com.amazonaws.services.dynamodb.model.KeySchema getKeySchema(String tableName)
Gets the key schema from a specific table

Parameters:
tableName - Table name to determine which key schema to get
Returns:

getProvisionedThroughput

public com.amazonaws.services.dynamodb.model.ProvisionedThroughput getProvisionedThroughput(String tableName)
Gets the provisioned throughput from a specific table

Parameters:
tableName - Table name to determine which provisioned throughput to get
Returns:


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.