Package org.apache.lucene.tests.util
Enum Class LuceneTestCase.Concurrency
- All Implemented Interfaces:
Serializable
,Comparable<LuceneTestCase.Concurrency>
,Constable
- Enclosing class:
LuceneTestCase
What level of concurrency is supported by the searcher being created
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInter-segment concurrency, meaning an executor will be provided to the searcher and slices will be randomly created to concurrently search entire segmentsIntra-segment concurrency, meaning an executor will be provided to the searcher and slices will be randomly created to concurrently search segment partitionsNo concurrency, meaning an executor won't be provided to the searcher -
Method Summary
Modifier and TypeMethodDescriptionstatic LuceneTestCase.Concurrency
Returns the enum constant of this class with the specified name.static LuceneTestCase.Concurrency[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No concurrency, meaning an executor won't be provided to the searcher -
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
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
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
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 nameNullPointerException
- if the argument is null
-