@Override
    public boolean hasNext() {
        Integer max = col.getMaxResultSize();
        if (max != null && max.intValue() <= 0)
            return false;
        return page == null || page.hasNextPage();
    }
@param <T> resource type
@param <R> low level result type
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/internal/PageIterator.java