test_class.file: code/src/test/java/com/googlecode/cqengine/metadata/SortedAttributeMetadataTest.java
test_class.identifier: SortedAttributeMetadataTest
test_case.body: @Test
      public void testGetFrequencyDistributionDescending() {
          IndexedCollection<Car> cars = createIndexedCollectionOfCars(20);
  
          // Add a sorted index on Car.MANUFACTURER (a NavigableIndex)...
          cars.addIndex(NavigableIndex.onAttribute(Car.MANUFACTURER));
          MetadataEngine<Car> metadataEngine = cars.getMetadataEngine();
  
          // Access metadata for Car.MANUFACTURER attribute.
          // Because we call getSortedAttributeMetadata() values will be returned in ascending order...
          SortedAttributeMetadata<String, Car> sortedAttributeMetadata = metadataEngine.getSortedAttributeMetadata(Car.MANUFACTURER);
  
          // Call AttributeMetadata.getFrequencyDistribution() to retrieve distinct keys and counts in ascending order.
          // We retrieve into a List in order to assert the ordering of values returned...
          assertEquals(
                  asList(frequency("Toyota", 6), frequency("Honda", 6), frequency("Ford", 6), frequency("BMW", 2)),
                  sortedAttributeMetadata.getFrequencyDistributionDescending().collect(toList())
          );
      }
test_case.class_method_signature: SortedAttributeMetadataTest.testGetFrequencyDistributionDescending()
test_case.full_signature: @Test public void testGetFrequencyDistributionDescending()
test_case.identifier: testGetFrequencyDistributionDescending
test_case.invocations: createIndexedCollectionOfCars addIndex onAttribute getMetadataEngine getSortedAttributeMetadata assertEquals asList frequency frequency frequency frequency collect getFrequencyDistributionDescending toList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetFrequencyDistributionDescending()
focal_class.declarator: index
focal_class.modifier: private final
focal_class.original_string: private final SortedKeyStatisticsIndex<A, O> index;
focal_class.type: SortedKeyStatisticsIndex<A, O>
focal_class.var_name: index
focal_class.file: code/src/main/java/com/googlecode/cqengine/metadata/SortedAttributeMetadata.java
focal_class.identifier: SortedAttributeMetadata
focal_class.class_method_signature: SortedAttributeMetadata.SortedAttributeMetadata(SortedKeyStatisticsIndex<A, O> index, Supplier<QueryOptions> openResourcesHandler, Consumer<QueryOptions> closeResourcesHandler)
focal_class.full_signature:   SortedAttributeMetadata(SortedKeyStatisticsIndex<A, O> index, Supplier<QueryOptions> openResourcesHandler, Consumer<QueryOptions> closeResourcesHandler)
focal_class.identifier: SortedAttributeMetadata
focal_class.parameters: (SortedKeyStatisticsIndex<A, O> index, Supplier<QueryOptions> openResourcesHandler, Consumer<QueryOptions> closeResourcesHandler)
focal_class.signature:  SortedAttributeMetadata(SortedKeyStatisticsIndex<A, O> index, Supplier<QueryOptions> openResourcesHandler, Consumer<QueryOptions> closeResourcesHandler)
focal_class.class_method_signature: SortedAttributeMetadata.getFrequencyDistribution()
focal_class.full_signature: @Override public Stream<KeyFrequency<A>> getFrequencyDistribution()
focal_class.identifier: getFrequencyDistribution
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<KeyFrequency<A>>
focal_class.signature: Stream<KeyFrequency<A>> getFrequencyDistribution()
focal_class.class_method_signature: SortedAttributeMetadata.getFrequencyDistributionDescending()
focal_class.full_signature: public Stream<KeyFrequency<A>> getFrequencyDistributionDescending()
focal_class.identifier: getFrequencyDistributionDescending
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<KeyFrequency<A>>
focal_class.signature: Stream<KeyFrequency<A>> getFrequencyDistributionDescending()
focal_class.class_method_signature: SortedAttributeMetadata.getDistinctKeys()
focal_class.full_signature: @Override public Stream<A> getDistinctKeys()
focal_class.identifier: getDistinctKeys
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<A>
focal_class.signature: Stream<A> getDistinctKeys()
focal_class.class_method_signature: SortedAttributeMetadata.getDistinctKeysDescending()
focal_class.full_signature: public Stream<A> getDistinctKeysDescending()
focal_class.identifier: getDistinctKeysDescending
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<A>
focal_class.signature: Stream<A> getDistinctKeysDescending()
focal_class.class_method_signature: SortedAttributeMetadata.getDistinctKeys(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.full_signature: public Stream<A> getDistinctKeys(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.identifier: getDistinctKeys
focal_class.modifiers: public
focal_class.parameters: (A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.return: Stream<A>
focal_class.signature: Stream<A> getDistinctKeys(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.class_method_signature: SortedAttributeMetadata.getDistinctKeysDescending(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.full_signature: public Stream<A> getDistinctKeysDescending(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.identifier: getDistinctKeysDescending
focal_class.modifiers: public
focal_class.parameters: (A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.return: Stream<A>
focal_class.signature: Stream<A> getDistinctKeysDescending(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.class_method_signature: SortedAttributeMetadata.getCountOfDistinctKeys()
focal_class.full_signature: @Override public Integer getCountOfDistinctKeys()
focal_class.identifier: getCountOfDistinctKeys
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getCountOfDistinctKeys()
focal_class.class_method_signature: SortedAttributeMetadata.getCountForKey(A key)
focal_class.full_signature: @Override public Integer getCountForKey(A key)
focal_class.identifier: getCountForKey
focal_class.modifiers: @Override public
focal_class.parameters: (A key)
focal_class.return: Integer
focal_class.signature: Integer getCountForKey(A key)
focal_class.class_method_signature: SortedAttributeMetadata.getKeysAndValues()
focal_class.full_signature: @Override public Stream<KeyValue<A, O>> getKeysAndValues()
focal_class.identifier: getKeysAndValues
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<KeyValue<A, O>>
focal_class.signature: Stream<KeyValue<A, O>> getKeysAndValues()
focal_class.class_method_signature: SortedAttributeMetadata.getKeysAndValuesDescending()
focal_class.full_signature: public Stream<KeyValue<A, O>> getKeysAndValuesDescending()
focal_class.identifier: getKeysAndValuesDescending
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<KeyValue<A, O>>
focal_class.signature: Stream<KeyValue<A, O>> getKeysAndValuesDescending()
focal_class.class_method_signature: SortedAttributeMetadata.getKeysAndValues(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.full_signature: public Stream<KeyValue<A, O>> getKeysAndValues(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.identifier: getKeysAndValues
focal_class.modifiers: public
focal_class.parameters: (A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.return: Stream<KeyValue<A, O>>
focal_class.signature: Stream<KeyValue<A, O>> getKeysAndValues(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.class_method_signature: SortedAttributeMetadata.getKeysAndValuesDescending(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.full_signature: public Stream<KeyValue<A, O>> getKeysAndValuesDescending(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.identifier: getKeysAndValuesDescending
focal_class.modifiers: public
focal_class.parameters: (A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.return: Stream<KeyValue<A, O>>
focal_class.signature: Stream<KeyValue<A, O>> getKeysAndValuesDescending(A lowerBound, boolean lowerInclusive, A upperBound, boolean upperInclusive)
focal_class.superclass: extends AttributeMetadata<A, O>
focal_method.body: public Stream<KeyFrequency<A>> getFrequencyDistributionDescending() {
          QueryOptions queryOptions = openResources();
          return asKeyFrequencyStream(queryOptions, index.getStatisticsForDistinctKeysDescending(queryOptions));
      }
focal_method.class_method_signature: SortedAttributeMetadata.getFrequencyDistributionDescending()
focal_method.full_signature: public Stream<KeyFrequency<A>> getFrequencyDistributionDescending()
focal_method.identifier: getFrequencyDistributionDescending
focal_method.invocations: openResources asKeyFrequencyStream getStatisticsForDistinctKeysDescending
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Stream<KeyFrequency<A>>
focal_method.signature: Stream<KeyFrequency<A>> getFrequencyDistributionDescending()