Interface KeyStatisticsIndex<A,​O>

    • Method Detail

      • getDistinctKeys

        CloseableIterable<A> getDistinctKeys​(QueryOptions queryOptions)
        Parameters:
        queryOptions - Optional parameters for the query
        Returns:
        The distinct keys in the index
      • getCountForKey

        Integer getCountForKey​(A key,
                               QueryOptions queryOptions)
        Parameters:
        key - A key which may be contained in the index
        queryOptions - Optional parameters for the query
        Returns:
        The number of objects stored in the bucket in the index with the given key
      • getCountOfDistinctKeys

        Integer getCountOfDistinctKeys​(QueryOptions queryOptions)
        Returns the count of distinct keys in the index.
        Parameters:
        queryOptions - Optional parameters for the query
        Returns:
        The count of distinct keys in the index.
      • getKeysAndValues

        CloseableIterable<KeyValue<A,​O>> getKeysAndValues​(QueryOptions queryOptions)
        Returns the keys and corresponding values for those keys in the index. Note the same key will be returned multiple times if more than one object has the same key. Also the same value might be returned multiple times, each time for a different key, if the index is built on a multi-value attribute.
        Parameters:
        queryOptions - Optional parameters for the query
        Returns:
        The keys and corresponding values for those keys in the index