Module org.elasticsearch.compute
Package org.elasticsearch.compute.lucene
Enum Class DataPartitioning
- All Implemented Interfaces:
Serializable,Comparable<DataPartitioning>,Constable
How we partition the data across
Drivers. Each request forks into
min(1.5 * cpus, partition_count) threads on the data node. More partitions
allow us to bring more threads to bear on CPU intensive data node side tasks.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatically select the data partitioning based on the query and index.Partition each shard intotask_concurrencypartitions, splitting larger segments into slices.Partition on segment boundaries, this doesn't allow forking to as many CPUs asDOCbut it has much lower overhead.Make one partition per shard. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataPartitioningReturns the enum constant of this class with the specified name.static DataPartitioning[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
-
SHARD
Make one partition per shard. This is generally the slowest option, but it has the lowest CPU overhead. -
SEGMENT
Partition on segment boundaries, this doesn't allow forking to as many CPUs asDOCbut it has much lower overhead.It packs segments smaller than
LuceneSliceQueue.MAX_DOCS_PER_SLICEdocs together into a partition. Larger segments get their own partition. Each slice contains no more thanLuceneSliceQueue.MAX_SEGMENTS_PER_SLICE. -
DOC
Partition each shard intotask_concurrencypartitions, splitting larger segments into slices. This allows bringing the most CPUs to bear on the problem but adds extra overhead, especially in query preparation.
-
-
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
-