Example usage for com.amazonaws.services.dynamodbv2.model ConsumedCapacity getLocalSecondaryIndexes

List of usage examples for com.amazonaws.services.dynamodbv2.model ConsumedCapacity getLocalSecondaryIndexes

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.model ConsumedCapacity getLocalSecondaryIndexes.

Prototype


public java.util.Map<String, Capacity> getLocalSecondaryIndexes() 

Source Link

Document

The amount of throughput consumed on each local index affected by the operation.

Usage

From source file:org.xmlsh.aws.util.AWSDDBCommand.java

License:BSD License

protected void writeConsumedCapacity(ConsumedCapacity consumedCapacity) throws XMLStreamException {
    if (consumedCapacity == null)
        return;//from  w w  w  . j  a  va2s  .c o m
    startElement("consumed-capacity");
    attribute("total-units", consumedCapacity.getCapacityUnits());
    startElement("table");
    writeCapacity("table-name", consumedCapacity.getTableName(), consumedCapacity.getTable());
    endElement();
    startElement("local-secondary-indexes");
    for (Entry<String, Capacity> ce : consumedCapacity.getLocalSecondaryIndexes().entrySet())
        writeCapacity("index-name", ce.getKey(), ce.getValue());
    endElement();

    startElement("global-secondary-indexes");
    for (Entry<String, Capacity> ce : consumedCapacity.getGlobalSecondaryIndexes().entrySet())
        writeCapacity("index-name", ce.getKey(), ce.getValue());
    endElement();
    endElement();

}