Module org.elasticsearch.xcore
Class DataFrameAnalyticsSource
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.DataFrameAnalyticsSource
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDataFrameAnalyticsSource(String[] index, QueryProvider queryProvider, FetchSourceContext sourceFiltering, Map<String, Object> runtimeMappings) -
Method Summary
Modifier and TypeMethodDescriptioncreateParser(boolean ignoreUnknownFields) booleanString[]getIndex()Get the fully parsed query from the semi-parsed storedMap<String, Object>getQueryDeprecations(NamedXContentRegistry namedXContentRegistry) Calls the parser and returns any gathered deprecationsinthashCode()booleanisFieldExcluded(String path) toXContent(XContentBuilder builder, 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
-
INDEX
-
QUERY
-
_SOURCE
-
-
Constructor Details
-
DataFrameAnalyticsSource
public DataFrameAnalyticsSource(String[] index, @Nullable QueryProvider queryProvider, @Nullable FetchSourceContext sourceFiltering, @Nullable Map<String, Object> runtimeMappings) -
DataFrameAnalyticsSource
- Throws:
IOException
-
DataFrameAnalyticsSource
-
-
Method Details
-
createParser
public static ConstructingObjectParser<DataFrameAnalyticsSource,Void> createParser(boolean ignoreUnknownFields) -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
getIndex
-
getParsedQuery
Get the fully parsed query from the semi-parsed storedMap<String, Object>- Returns:
- Fully parsed query
-
getSourceFiltering
-
getQueryDeprecations
Calls the parser and returns any gathered deprecations- Parameters:
namedXContentRegistry- XContent registry to transform the lazily parsed query- Returns:
- The deprecations from parsing the query
-
getRuntimeMappings
-
isFieldExcluded
-