Module org.elasticsearch.xcore
Class GetInferenceFieldsAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.xpack.core.inference.action.GetInferenceFieldsAction.Request
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest,TransportRequest
- Enclosing class:
GetInferenceFieldsAction
-
Nested Class Summary
Nested 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.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionRequest(Set<String> indices, Map<String, Float> fields, boolean resolveWildcards, boolean useDefaultFields, String query) An overload ofRequest(Set, Map, boolean, boolean, String, IndicesOptions)that usesIndicesOptions.DEFAULTRequest(Set<String> indices, Map<String, Float> fields, boolean resolveWildcards, boolean useDefaultFields, String query, IndicesOptions indicesOptions) Constructs a request to get inference fields.Request(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetQuery()inthashCode()booleanbooleanvalidate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTask
-
Constructor Details
-
Request
public Request(Set<String> indices, Map<String, Float> fields, boolean resolveWildcards, boolean useDefaultFields, @Nullable String query) An overload ofRequest(Set, Map, boolean, boolean, String, IndicesOptions)that usesIndicesOptions.DEFAULT -
Request
public Request(Set<String> indices, Map<String, Float> fields, boolean resolveWildcards, boolean useDefaultFields, @Nullable String query, @Nullable IndicesOptions indicesOptions) Constructs a request to get inference fields.
If
useDefaultFieldsis true andfieldsis empty, then the field pattern map will be derived from the value ofIndexSettings.DEFAULT_FIELD_SETTINGfor each index.If
queryisnull, then no inference results will be generated. This can be useful in scenarios where the caller only needs to check for the existence of inference fields.- Parameters:
indices- The indices to get inference fields for.fields- The field pattern map, where the key is the field pattern and the value is the pattern weight.resolveWildcards- Iftrue, wildcards in field patterns will be resolved. Otherwise, only explicit matches will be returned.useDefaultFields- Iftrue, default fields will be used iffieldsis empty.query- The query to generate inference results for.indicesOptions- TheIndicesOptionsto use when resolving indices.
-
Request
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
validate
- Specified by:
validatein classActionRequest
-
getIndices
-
getFields
-
resolveWildcards
public boolean resolveWildcards() -
useDefaultFields
public boolean useDefaultFields() -
getQuery
-
getIndicesOptions
-
equals
-
hashCode
public int hashCode()
-