Module org.elasticsearch.xcore
Class ChunkingConfig
java.lang.Object
org.elasticsearch.xpack.core.ml.datafeed.ChunkingConfig
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class ChunkingConfig
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
The description of how searches should be chunked.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<ChunkingConfig, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<ChunkingConfig, Void> static final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.elasticsearch.core.TimeValueinthashCode()booleanbooleanisManual()static ChunkingConfignewAuto()static ChunkingConfignewManual(org.elasticsearch.core.TimeValue timeSpan) static ChunkingConfignewOff()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODE_FIELD
public static final org.elasticsearch.xcontent.ParseField MODE_FIELD -
TIME_SPAN_FIELD
public static final org.elasticsearch.xcontent.ParseField TIME_SPAN_FIELD -
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<ChunkingConfig,Void> LENIENT_PARSER -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<ChunkingConfig,Void> STRICT_PARSER
-
-
Constructor Details
-
ChunkingConfig
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getTimeSpan
@Nullable public org.elasticsearch.core.TimeValue getTimeSpan() -
isEnabled
public boolean isEnabled() -
isManual
public boolean isManual() -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
newAuto
-
newOff
-
newManual
-