List of usage examples for com.amazonaws.services.dynamodbv2.model LocalSecondaryIndex setIndexName
public void setIndexName(String indexName)
The name of the local secondary index.
From source file:io.venable.amazonaws.dynamo.table.builder.LocalSecondaryIndexBuilderImpl.java
License:Apache License
void buildSecondaryIndexes(KeySchemaElement primaryHashKeySchemaElement, Collection<LocalSecondaryIndex> localSecondaryIndexCollection, Collection<AttributeDefinition> attributeDefinitionCollection) { LocalSecondaryIndex localSecondaryIndex = new LocalSecondaryIndex(); localSecondaryIndex.setIndexName(indexName); Collection<KeySchemaElement> keySchemaElementCollection = new ArrayList<>(); keySchemaElementCollection.add(primaryHashKeySchemaElement); buildRangeKey(keySchemaElementCollection, attributeDefinitionCollection); localSecondaryIndex.setKeySchema(keySchemaElementCollection); projection.build(localSecondaryIndex); localSecondaryIndexCollection.add(localSecondaryIndex); }