class DynamoSchema {

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

}