Package org.elasticsearch.client.ml
Class GetFiltersRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.client.ml.GetFiltersRequest
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject,TaskAwareRequest
public class GetFiltersRequest extends ActionRequest implements ToXContentObject
A request to retrieveMlFilters
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectParser<GetFiltersRequest,Void>PARSER-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description GetFiltersRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFilterId()IntegergetFrom()IntegergetSize()inthashCode()voidsetFilterId(String filterId)Sets the filter idvoidsetFrom(Integer from)Sets the number of filters to skip.voidsetSize(Integer size)Sets the number of filters to return.XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)ActionRequestValidationExceptionvalidate()-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, writeTo
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
PARSER
public static final ObjectParser<GetFiltersRequest,Void> PARSER
-
-
Method Detail
-
getFilterId
public String getFilterId()
-
getFrom
public Integer getFrom()
-
getSize
public Integer getSize()
-
setFilterId
public void setFilterId(String filterId)
Sets the filter id- Parameters:
filterId- the filter id
-
setFrom
public void setFrom(Integer from)
Sets the number of filters to skip.- Parameters:
from- set the `from` parameter
-
setSize
public void setSize(Integer size)
Sets the number of filters to return.- Parameters:
size- set the `size` parameter
-
validate
public ActionRequestValidationException validate()
- Specified by:
validatein classActionRequest
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-