Class AbstractNXYSignificanceHeuristicTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.search.aggregations.bucket.AbstractSignificanceHeuristicTestCase
org.elasticsearch.search.aggregations.bucket.AbstractNXYSignificanceHeuristicTestCase

public abstract class AbstractNXYSignificanceHeuristicTestCase extends AbstractSignificanceHeuristicTestCase
Abstract test case for testing NXY significant term heuristics
  • Constructor Details

    • AbstractNXYSignificanceHeuristicTestCase

      public AbstractNXYSignificanceHeuristicTestCase()
  • Method Details

    • getHeuristic

      protected SignificanceHeuristic getHeuristic()
      Specified by:
      getHeuristic in class AbstractSignificanceHeuristicTestCase
      Returns:
      A random instance of the heuristic to test
    • getHeuristic

      protected abstract SignificanceHeuristic getHeuristic(boolean includeNegatives, boolean backgroundIsSuperset)
      Parameters:
      includeNegatives - value for this test run, should the scores include negative values.
      backgroundIsSuperset - value for this test run, indicates in NXY significant terms if the background is indeed a superset of the the subset, or is instead a disjoint set
      Returns:
      A random instance of an NXY heuristic to test
    • testBasicScoreProperties

      public void testBasicScoreProperties()
      Overrides:
      testBasicScoreProperties in class AbstractSignificanceHeuristicTestCase