Class ChunkingConfig
- java.lang.Object
-
- org.elasticsearch.client.ml.datafeed.ChunkingConfig
-
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class ChunkingConfig extends java.lang.Object implements ToXContentObject
The description of how searches should be chunked.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChunkingConfig.Mode
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseField
MODE_FIELD
static ConstructingObjectParser<ChunkingConfig,java.lang.Void>
PARSER
static ParseField
TIME_SPAN_FIELD
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
TimeValue
getTimeSpan()
int
hashCode()
static ChunkingConfig
newAuto()
static ChunkingConfig
newManual(TimeValue timeSpan)
static ChunkingConfig
newOff()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
MODE_FIELD
public static final ParseField MODE_FIELD
-
TIME_SPAN_FIELD
public static final ParseField TIME_SPAN_FIELD
-
PARSER
public static final ConstructingObjectParser<ChunkingConfig,java.lang.Void> PARSER
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
newAuto
public static ChunkingConfig newAuto()
-
newOff
public static ChunkingConfig newOff()
-
newManual
public static ChunkingConfig newManual(TimeValue timeSpan)
-
-