test_class.declarator: PROVISIONED_THROUGHPUT = new ProvisionedThroughput()
test_class.modifier: private static final
test_class.original_string: private static final ProvisionedThroughput PROVISIONED_THROUGHPUT = new ProvisionedThroughput();
test_class.type: ProvisionedThroughput
test_class.var_name: PROVISIONED_THROUGHPUT
test_class.declarator: TABLE_NAME = "table"
test_class.modifier: private static final
test_class.original_string: private static final String TABLE_NAME = "table";
test_class.type: String
test_class.var_name: TABLE_NAME
test_class.file: ingester/src/test/java/com/amazonaws/services/dynamodbv2/json/demo/mars/util/MarsDynamoDBManagerTest.java
test_class.identifier: MarsDynamoDBManagerTest
test_case.body: @Test
      public void testCreateResourceTable() {
          final AmazonDynamoDB dynamoDB = PowerMock.createMock(AmazonDynamoDB.class);
          PowerMock.mockStatic(DynamoDBManager.class);
          final CreateTableRequest request = new CreateTableRequest();
          request.setAttributeDefinitions(MarsDynamoDBManager.RESOURCE_TABLE_ATTRIBUTE_DEFINITIONS);
          request.setKeySchema(MarsDynamoDBManager.RESOURCE_TABLE_KEY_SCHEMA);
          request.setProvisionedThroughput(PROVISIONED_THROUGHPUT);
          request.setTableName(TABLE_NAME);
  
          DynamoDBManager.createTable(dynamoDB, request);
          PowerMock.expectLastCall().andReturn(null);
          PowerMock.replayAll();
          MarsDynamoDBManager.createResourceTable(dynamoDB, TABLE_NAME, PROVISIONED_THROUGHPUT);
          PowerMock.verifyAll();
      }
test_case.class_method_signature: MarsDynamoDBManagerTest.testCreateResourceTable()
test_case.full_signature: @Test public void testCreateResourceTable()
test_case.identifier: testCreateResourceTable
test_case.invocations: createMock mockStatic setAttributeDefinitions setKeySchema setProvisionedThroughput setTableName createTable andReturn expectLastCall replayAll createResourceTable verifyAll
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateResourceTable()
focal_class.declarator: LOGGER = Logger.getLogger(MarsDynamoDBManager.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(MarsDynamoDBManager.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: RESOURCE_TABLE_ATTRIBUTE_DEFINITIONS
focal_class.modifier: public static final
focal_class.original_string: public static final Collection<AttributeDefinition> RESOURCE_TABLE_ATTRIBUTE_DEFINITIONS;
focal_class.type: Collection<AttributeDefinition>
focal_class.var_name: RESOURCE_TABLE_ATTRIBUTE_DEFINITIONS
focal_class.declarator: RESOURCE_TABLE_HASH_KEY = "resource"
focal_class.modifier: public static final
focal_class.original_string: public static final String RESOURCE_TABLE_HASH_KEY = "resource";
focal_class.type: String
focal_class.var_name: RESOURCE_TABLE_HASH_KEY
focal_class.declarator: RESOURCE_TABLE_KEY_SCHEMA
focal_class.modifier: protected static final
focal_class.original_string: protected static final Collection<KeySchemaElement> RESOURCE_TABLE_KEY_SCHEMA;
focal_class.type: Collection<KeySchemaElement>
focal_class.var_name: RESOURCE_TABLE_KEY_SCHEMA
focal_class.declarator: IMAGE_TABLE_HASH_KEY = "imageid"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_HASH_KEY = "imageid";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_HASH_KEY
focal_class.declarator: IMAGE_TABLE_GSI_HASH_KEY = "Mission+InstrumentID"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_GSI_HASH_KEY = "Mission+InstrumentID";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_GSI_HASH_KEY
focal_class.declarator: IMAGE_TABLE_TIME_GSI_RANGE_KEY = "TimeStamp"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_TIME_GSI_RANGE_KEY = "TimeStamp";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_TIME_GSI_RANGE_KEY
focal_class.declarator: IMAGE_TABLE_VOTE_GSI_RANGE_KEY = "votes"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_VOTE_GSI_RANGE_KEY = "votes";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_VOTE_GSI_RANGE_KEY
focal_class.declarator: IMAGE_TABLE_URL_ATTRIBUTE = "url"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_URL_ATTRIBUTE = "url";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_URL_ATTRIBUTE
focal_class.declarator: IMAGE_TABLE_THUMBNAIL_ATTRIBUTE = "data"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_THUMBNAIL_ATTRIBUTE = "data";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_THUMBNAIL_ATTRIBUTE
focal_class.declarator: IMAGE_TABLE_TIME_ATTRIBUTE = "time"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_TIME_ATTRIBUTE = "time";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_TIME_ATTRIBUTE
focal_class.declarator: IMAGE_TABLE_MISSION_ATTRIBUTE = "mission"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_MISSION_ATTRIBUTE = "mission";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_MISSION_ATTRIBUTE
focal_class.declarator: IMAGE_TABLE_INSTRUMENT_ATTRIBUTE = "instrument"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_INSTRUMENT_ATTRIBUTE = "instrument";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_INSTRUMENT_ATTRIBUTE
focal_class.declarator: IMAGE_TABLE_ATTRIBUTE_DEFINITIONS
focal_class.modifier: public static final
focal_class.original_string: public static final Collection<AttributeDefinition> IMAGE_TABLE_ATTRIBUTE_DEFINITIONS;
focal_class.type: Collection<AttributeDefinition>
focal_class.var_name: IMAGE_TABLE_ATTRIBUTE_DEFINITIONS
focal_class.declarator: IMAGE_TABLE_KEY_SCHEMA
focal_class.modifier: public static final
focal_class.original_string: public static final Collection<KeySchemaElement> IMAGE_TABLE_KEY_SCHEMA;
focal_class.type: Collection<KeySchemaElement>
focal_class.var_name: IMAGE_TABLE_KEY_SCHEMA
focal_class.declarator: IMAGE_TABLE_TIME_GSI_NAME = "date-gsi"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_TIME_GSI_NAME = "date-gsi";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_TIME_GSI_NAME
focal_class.declarator: IMAGE_TABLE_TIME_GSI_NON_KEY_PROJECTED_ATTRIBUTES = Arrays.asList(
          IMAGE_TABLE_TIME_ATTRIBUTE, IMAGE_TABLE_URL_ATTRIBUTE, IMAGE_TABLE_MISSION_ATTRIBUTE,
          IMAGE_TABLE_INSTRUMENT_ATTRIBUTE, IMAGE_TABLE_VOTE_GSI_RANGE_KEY)
focal_class.modifier: public static final
focal_class.original_string: public static final Collection<String> IMAGE_TABLE_TIME_GSI_NON_KEY_PROJECTED_ATTRIBUTES = Arrays.asList(
          IMAGE_TABLE_TIME_ATTRIBUTE, IMAGE_TABLE_URL_ATTRIBUTE, IMAGE_TABLE_MISSION_ATTRIBUTE,
          IMAGE_TABLE_INSTRUMENT_ATTRIBUTE, IMAGE_TABLE_VOTE_GSI_RANGE_KEY);
focal_class.type: Collection<String>
focal_class.var_name: IMAGE_TABLE_TIME_GSI_NON_KEY_PROJECTED_ATTRIBUTES
focal_class.declarator: IMAGE_TABLE_TIME_GSI_PROJECTION = new Projection().withProjectionType(
          ProjectionType.INCLUDE).withNonKeyAttributes(IMAGE_TABLE_TIME_GSI_NON_KEY_PROJECTED_ATTRIBUTES)
focal_class.modifier: public static final
focal_class.original_string: public static final Projection IMAGE_TABLE_TIME_GSI_PROJECTION = new Projection().withProjectionType(
          ProjectionType.INCLUDE).withNonKeyAttributes(IMAGE_TABLE_TIME_GSI_NON_KEY_PROJECTED_ATTRIBUTES);
focal_class.type: Projection
focal_class.var_name: IMAGE_TABLE_TIME_GSI_PROJECTION
focal_class.declarator: IMAGE_TABLE_TIME_GSI_HASH_KSE = new KeySchemaElement(IMAGE_TABLE_GSI_HASH_KEY,
          KeyType.HASH)
focal_class.modifier: public static final
focal_class.original_string: public static final KeySchemaElement IMAGE_TABLE_TIME_GSI_HASH_KSE = new KeySchemaElement(IMAGE_TABLE_GSI_HASH_KEY,
          KeyType.HASH);
focal_class.type: KeySchemaElement
focal_class.var_name: IMAGE_TABLE_TIME_GSI_HASH_KSE
focal_class.declarator: IMAGE_TABLE_TIME_GSI_RANGE_KSE = new KeySchemaElement(
          IMAGE_TABLE_TIME_GSI_RANGE_KEY, KeyType.RANGE)
focal_class.modifier: public static final
focal_class.original_string: public static final KeySchemaElement IMAGE_TABLE_TIME_GSI_RANGE_KSE = new KeySchemaElement(
          IMAGE_TABLE_TIME_GSI_RANGE_KEY, KeyType.RANGE);
focal_class.type: KeySchemaElement
focal_class.var_name: IMAGE_TABLE_TIME_GSI_RANGE_KSE
focal_class.declarator: IMAGE_TABLE_VOTE_GSI_NAME = "vote-gsi"
focal_class.modifier: public static final
focal_class.original_string: public static final String IMAGE_TABLE_VOTE_GSI_NAME = "vote-gsi";
focal_class.type: String
focal_class.var_name: IMAGE_TABLE_VOTE_GSI_NAME
focal_class.declarator: IMAGE_TABLE_VOTE_GSI_NON_KEY_PROJECTED_ATTRIBUTES = Arrays.asList(
          IMAGE_TABLE_TIME_ATTRIBUTE, IMAGE_TABLE_URL_ATTRIBUTE, IMAGE_TABLE_MISSION_ATTRIBUTE,
          IMAGE_TABLE_INSTRUMENT_ATTRIBUTE)
focal_class.modifier: public static final
focal_class.original_string: public static final Collection<String> IMAGE_TABLE_VOTE_GSI_NON_KEY_PROJECTED_ATTRIBUTES = Arrays.asList(
          IMAGE_TABLE_TIME_ATTRIBUTE, IMAGE_TABLE_URL_ATTRIBUTE, IMAGE_TABLE_MISSION_ATTRIBUTE,
          IMAGE_TABLE_INSTRUMENT_ATTRIBUTE);
focal_class.type: Collection<String>
focal_class.var_name: IMAGE_TABLE_VOTE_GSI_NON_KEY_PROJECTED_ATTRIBUTES
focal_class.declarator: IMAGE_TABLE_VOTE_GSI_PROJECTION = new Projection().withProjectionType(
          ProjectionType.INCLUDE).withNonKeyAttributes(IMAGE_TABLE_VOTE_GSI_NON_KEY_PROJECTED_ATTRIBUTES)
focal_class.modifier: public static final
focal_class.original_string: public static final Projection IMAGE_TABLE_VOTE_GSI_PROJECTION = new Projection().withProjectionType(
          ProjectionType.INCLUDE).withNonKeyAttributes(IMAGE_TABLE_VOTE_GSI_NON_KEY_PROJECTED_ATTRIBUTES);
focal_class.type: Projection
focal_class.var_name: IMAGE_TABLE_VOTE_GSI_PROJECTION
focal_class.declarator: IMAGE_TABLE_VOTE_GSI_HASH_KSE = new KeySchemaElement(IMAGE_TABLE_GSI_HASH_KEY,
          KeyType.HASH)
focal_class.modifier: public static final
focal_class.original_string: public static final KeySchemaElement IMAGE_TABLE_VOTE_GSI_HASH_KSE = new KeySchemaElement(IMAGE_TABLE_GSI_HASH_KEY,
          KeyType.HASH);
focal_class.type: KeySchemaElement
focal_class.var_name: IMAGE_TABLE_VOTE_GSI_HASH_KSE
focal_class.declarator: IMAGE_TABLE_VOTE_GSI_RANGE_KSE = new KeySchemaElement(
          IMAGE_TABLE_VOTE_GSI_RANGE_KEY, KeyType.RANGE)
focal_class.modifier: public static final
focal_class.original_string: public static final KeySchemaElement IMAGE_TABLE_VOTE_GSI_RANGE_KSE = new KeySchemaElement(
          IMAGE_TABLE_VOTE_GSI_RANGE_KEY, KeyType.RANGE);
focal_class.type: KeySchemaElement
focal_class.var_name: IMAGE_TABLE_VOTE_GSI_RANGE_KSE
focal_class.file: ingester/src/main/java/com/amazonaws/services/dynamodbv2/json/demo/mars/util/MarsDynamoDBManager.java
focal_class.identifier: MarsDynamoDBManager
focal_class.class_method_signature: MarsDynamoDBManager.createImageTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput tableProvisionedThroughput,
          final ProvisionedThroughput timeGSIProvisionedThroughput,
          final ProvisionedThroughput voteGSIProvisionedThroughput)
focal_class.full_signature: public static void createImageTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput tableProvisionedThroughput,
          final ProvisionedThroughput timeGSIProvisionedThroughput,
          final ProvisionedThroughput voteGSIProvisionedThroughput)
focal_class.identifier: createImageTable
focal_class.modifiers: public static
focal_class.parameters: (final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput tableProvisionedThroughput,
          final ProvisionedThroughput timeGSIProvisionedThroughput,
          final ProvisionedThroughput voteGSIProvisionedThroughput)
focal_class.return: void
focal_class.signature: void createImageTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput tableProvisionedThroughput,
          final ProvisionedThroughput timeGSIProvisionedThroughput,
          final ProvisionedThroughput voteGSIProvisionedThroughput)
focal_class.class_method_signature: MarsDynamoDBManager.createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_class.full_signature: public static void createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_class.identifier: createResourceTable
focal_class.modifiers: public static
focal_class.parameters: (final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_class.return: void
focal_class.signature: void createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_class.class_method_signature: MarsDynamoDBManager.MarsDynamoDBManager()
focal_class.full_signature: private  MarsDynamoDBManager()
focal_class.identifier: MarsDynamoDBManager
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  MarsDynamoDBManager()
focal_method.body: public static void createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput) {
          final CreateTableRequest request = new CreateTableRequest();
          request.setAttributeDefinitions(RESOURCE_TABLE_ATTRIBUTE_DEFINITIONS);
          request.setKeySchema(RESOURCE_TABLE_KEY_SCHEMA);
          request.setProvisionedThroughput(provisionedThroughput);
          request.setTableName(tableName);
          LOGGER.info("Creating resource table: " + request);
          DynamoDBManager.createTable(dynamoDB, request);
          LOGGER.info("Resource table successfully created");
      }
focal_method.class_method_signature: MarsDynamoDBManager.createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_method.full_signature: public static void createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_method.identifier: createResourceTable
focal_method.invocations: setAttributeDefinitions setKeySchema setProvisionedThroughput setTableName info createTable info
focal_method.modifiers: public static
focal_method.parameters: (final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)
focal_method.return: void
focal_method.signature: void createResourceTable(final AmazonDynamoDB dynamoDB, final String tableName,
          final ProvisionedThroughput provisionedThroughput)