class SortedAttributeMetadata extends AttributeMetadata<A, O> {

    public Stream<KeyValue<A, O>> getKeysAndValuesDescending() {
        QueryOptions queryOptions = openResources();
        return asStream(queryOptions, index.getKeysAndValuesDescending(queryOptions));
    }

      SortedAttributeMetadata(SortedKeyStatisticsIndex<A, O> index, Supplier<QueryOptions> openResourcesHandler, Consumer<QueryOptions> closeResourcesHandler);

}