All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphaware.relcount.full.internal.cache.GeneralizationStrategy Maven / Gradle / Ivy

package com.graphaware.relcount.full.internal.cache;

import com.graphaware.relcount.full.internal.dto.relationship.CompactibleRelationship;

import java.util.List;
import java.util.Map;

/**
 * A strategy for producing generalizations of cached counts.
 */
public interface GeneralizationStrategy {

    /**
     * Produce all possible generalizations of the cached counts, sorted from best to worst. Implementations should
     * determine what "best" means.
     *
     * @param cachedCounts cached counts that need to be compacted.
     * @return best-to-worst sorted generalizations.
     */
    List produceGeneralizations(Map cachedCounts);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy