Class DatafeedConfig
java.lang.Object
org.elasticsearch.client.ml.datafeed.DatafeedConfig
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
The datafeed configuration object. It specifies which indices
to get the data from and offers parameters for customizing different
aspects of the process.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ConstructingObjectParser<DatafeedConfig.Builder,
Void> static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatafeedConfig.Builder
boolean
The lists of indices and types are compared for equality but they are not sorted first so this test could fail simply because the indices and types lists are in different orders.org.elasticsearch.common.bytes.BytesReference
org.elasticsearch.core.TimeValue
getId()
org.elasticsearch.action.support.IndicesOptions
getJobId()
org.elasticsearch.common.bytes.BytesReference
getQuery()
org.elasticsearch.core.TimeValue
List<org.elasticsearch.search.builder.SearchSourceBuilder.ScriptField>
int
hashCode()
Note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to compute a stable hash code.org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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.xcontent.ToXContentObject
isFragment
-
Field Details
-
ID
public static final org.elasticsearch.xcontent.ParseField ID -
JOB_ID
public static final org.elasticsearch.xcontent.ParseField JOB_ID -
QUERY_DELAY
public static final org.elasticsearch.xcontent.ParseField QUERY_DELAY -
FREQUENCY
public static final org.elasticsearch.xcontent.ParseField FREQUENCY -
INDEXES
public static final org.elasticsearch.xcontent.ParseField INDEXES -
INDICES
public static final org.elasticsearch.xcontent.ParseField INDICES -
QUERY
public static final org.elasticsearch.xcontent.ParseField QUERY -
SCROLL_SIZE
public static final org.elasticsearch.xcontent.ParseField SCROLL_SIZE -
AGGREGATIONS
public static final org.elasticsearch.xcontent.ParseField AGGREGATIONS -
SCRIPT_FIELDS
public static final org.elasticsearch.xcontent.ParseField SCRIPT_FIELDS -
CHUNKING_CONFIG
public static final org.elasticsearch.xcontent.ParseField CHUNKING_CONFIG -
DELAYED_DATA_CHECK_CONFIG
public static final org.elasticsearch.xcontent.ParseField DELAYED_DATA_CHECK_CONFIG -
MAX_EMPTY_SEARCHES
public static final org.elasticsearch.xcontent.ParseField MAX_EMPTY_SEARCHES -
INDICES_OPTIONS
public static final org.elasticsearch.xcontent.ParseField INDICES_OPTIONS -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<DatafeedConfig.Builder,Void> PARSER
-
-
Method Details
-
getId
-
getJobId
-
getQueryDelay
public org.elasticsearch.core.TimeValue getQueryDelay() -
getFrequency
public org.elasticsearch.core.TimeValue getFrequency() -
getIndices
-
getScrollSize
-
getQuery
public org.elasticsearch.common.bytes.BytesReference getQuery() -
getAggregations
public org.elasticsearch.common.bytes.BytesReference getAggregations() -
getScriptFields
-
getChunkingConfig
-
getDelayedDataCheckConfig
-
getMaxEmptySearches
-
getIndicesOptions
public org.elasticsearch.action.support.IndicesOptions getIndicesOptions() -
getRuntimeMappings
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
equals
The lists of indices and types are compared for equality but they are not sorted first so this test could fail simply because the indices and types lists are in different orders. Also note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to correctly compare them. -
hashCode
public int hashCode()Note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to compute a stable hash code. -
builder
-