Enum Class LuceneTestCase.Concurrency

java.lang.Object
java.lang.Enum<LuceneTestCase.Concurrency>
org.apache.lucene.tests.util.LuceneTestCase.Concurrency
All Implemented Interfaces:
Serializable, Comparable<LuceneTestCase.Concurrency>, Constable
Enclosing class:
LuceneTestCase

public static enum LuceneTestCase.Concurrency extends Enum<LuceneTestCase.Concurrency>
What level of concurrency is supported by the searcher being created
  • Enum Constant Details

    • NONE

      public static final LuceneTestCase.Concurrency NONE
      No concurrency, meaning an executor won't be provided to the searcher
    • INTER_SEGMENT

      public static final LuceneTestCase.Concurrency INTER_SEGMENT
      Inter-segment concurrency, meaning an executor will be provided to the searcher and slices will be randomly created to concurrently search entire segments
    • INTRA_SEGMENT

      public static final LuceneTestCase.Concurrency INTRA_SEGMENT
      Intra-segment concurrency, meaning an executor will be provided to the searcher and slices will be randomly created to concurrently search segment partitions
  • Method Details

    • values

      public static LuceneTestCase.Concurrency[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LuceneTestCase.Concurrency valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null