java.lang.Object
org.elasticsearch.xpack.core.ml.utils.QueryProvider
- All Implemented Interfaces:
Writeable,Rewriteable<QueryProvider>,ToXContent,ToXContentObject
public class QueryProvider
extends Object
implements Writeable, ToXContentObject, Rewriteable<QueryProvider>
-
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
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryProviderbooleanstatic QueryProviderfromParsedQuery(QueryBuilder parsedQuery) static QueryProviderstatic QueryProviderfromXContent(XContentParser parser, boolean lenient, String failureMessage) getQuery()inthashCode()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
-
Constructor Details
-
QueryProvider
-
-
Method Details
-
defaultQuery
-
fromXContent
public static QueryProvider fromXContent(XContentParser parser, boolean lenient, String failureMessage) throws IOException - Throws:
IOException
-
fromParsedQuery
- Throws:
IOException
-
fromStream
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getParsingException
-
getParsedQuery
-
getQuery
-
equals
-
hashCode
public int hashCode() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
rewrite
- Specified by:
rewritein interfaceRewriteable<QueryProvider>- Throws:
IOException
-