Package org.opensearch.index.query
Enum IntervalMode
- All Implemented Interfaces:
Serializable
,Comparable<IntervalMode>
,org.opensearch.core.common.io.stream.Writeable
@PublicApi(since="1.0.0")
public enum IntervalMode
extends Enum<IntervalMode>
implements org.opensearch.core.common.io.stream.Writeable
Mode for Text and Mapped Field Types
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IntervalMode
fromString
(String intervalMode) static IntervalMode
readFromStream
(org.opensearch.core.common.io.stream.StreamInput in) static IntervalMode
Returns the enum constant of this type with the specified name.static IntervalMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out)
-
Enum Constant Details
-
ORDERED
-
UNORDERED
-
UNORDERED_NO_OVERLAP
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
readFromStream
public static IntervalMode readFromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-
fromString
-