class DynamoSchema {

    public Set<DynamoIndex> getGlobalSecondaryIndexes() {
        return getIndexes().stream()
                .filter(index -> index.getIndexType().equals(IndexType.GLOBAL_SECONDARY_INDEX))
                .collect(toLinkedHashSet());
    }

}