Class SimpleSimilarityCache

    • Constructor Detail

      • SimpleSimilarityCache

        public SimpleSimilarityCache​(WriteableObjectPool pool,
                                     String pathCache,
                                     boolean complete)
        Creates a new simple similarity cache and tries to complete the data loaded from the path.
        Parameters:
        pool - the case base
        pathCache - the path to the existing cache
        complete - whether to complete the loaded cache or do nothing
      • SimpleSimilarityCache

        public SimpleSimilarityCache​(WriteableObjectPool queryPool,
                                     WriteableObjectPool casePool,
                                     String pathCache,
                                     boolean complete)
        Creates a new simple similarity cache and tries to complete the data loaded from the path.
        Parameters:
        queryPool - the relevant query case base for the SimCache.
        casePool - the relevant case case base for the SimCache.
        pathCache - the path to the existing cache
        complete - whether to complete the loaded cache or do nothing
      • SimpleSimilarityCache

        public SimpleSimilarityCache​(WriteableObjectPool pool,
                                     String pathCache,
                                     @NotNull
                                     SimCalculatorStrategy strategy)
        Creates a new simple similarity cache and tries to complete the data loaded from the path.
        Parameters:
        pool - the case base
        pathCache - the path to the existing cache
        strategy - the strategy to use to compute the similarities
      • SimpleSimilarityCache

        public SimpleSimilarityCache​(WriteableObjectPool queryPool,
                                     WriteableObjectPool casePool,
                                     String pathCache,
                                     @NotNull
                                     SimCalculatorStrategy strategy)
        Creates a new simple similarity cache and tries to complete the data loaded from the path.
        Parameters:
        queryPool - the relevant query case base for the SimCache.
        casePool - the relevant case case base for the SimCache.
        pathCache - the path to the existing cache
        strategy - the strategy to use to compute the similarities
      • SimpleSimilarityCache

        public SimpleSimilarityCache​(WriteableObjectPool pool,
                                     String pathCache,
                                     @NotNull
                                     SimCalculatorStrategy strategy,
                                     boolean complete)
        Creates a new simple similarity cache and tries to complete the data loaded from the path.
        Parameters:
        pool - the case base
        pathCache - the path to the existing cache
        strategy - the strategy to use to compute the similarities
        complete - whether to complete the loaded cache or do nothing
      • SimpleSimilarityCache

        public SimpleSimilarityCache​(WriteableObjectPool queryPool,
                                     WriteableObjectPool casePool,
                                     String pathCache,
                                     @NotNull
                                     SimCalculatorStrategy strategy,
                                     boolean complete)
        Creates a new simple similarity cache and tries to complete the data loaded from the path.
        Parameters:
        queryPool - the relevant query case base for the SimCache.
        casePool - the relevant case case base for the SimCache.
        pathCache - the path to the existing cache
        strategy - the strategy to use to compute the similarities
        complete - whether to complete the loaded cache or do nothing