Example usage for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport hasNext

List of usage examples for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport hasNext

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport hasNext.

Prototype

@Override
    public boolean hasNext() 

Source Link

Usage

From source file:tr.com.serkanozal.samba.cache.impl.SambaGlobalCache.java

License:Open Source License

@Override
public void clear() {
    ItemCollection<ScanOutcome> items = DYNAMO_DB_TABLE.scan();
    IteratorSupport<Item, ScanOutcome> itemsIter = items.iterator();
    while (itemsIter.hasNext()) {
        Item item = itemsIter.next();//w  w w.j  av  a 2 s  . com
        DYNAMO_DB_TABLE.deleteItem("id", item.get("id"));
    }
    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Global cache has been cleared");
    }
}