Record Class MessagesRequestSpec
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.rest.scriptingapi.request.MessagesRequestSpec
- All Implemented Interfaces:
SearchRequestSpec
public record MessagesRequestSpec(String queryString, Set<String> streams, TimeRange timerange, String sort, SortSpec.Direction sortOrder, int from, int size, List<String> fields)
extends Record
implements SearchRequestSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final SortSpec.DirectionFields inherited from interface org.graylog.plugins.views.search.rest.scriptingapi.request.SearchRequestSpec
DEFAULT_QUERY_STRING, DEFAULT_TIMERANGE -
Constructor Summary
ConstructorsConstructorDescriptionMessagesRequestSpec(String queryString, Set<String> streams, TimeRange timerange, String sort, SortSpec.Direction sortOrder, int from, int size, List<String> fields) Creates an instance of aMessagesRequestSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.intfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thequeryStringrecord component.intsize()Returns the value of thesizerecord component.sort()Returns the value of thesortrecord component.Returns the value of thesortOrderrecord component.streams()Returns the value of thestreamsrecord component.Returns the value of thetimerangerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_FIELDS
-
DEFAULT_SORT
- See Also:
-
DEFAULT_SORT_ORDER
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE- See Also:
-
DEFAULT_FROM
public static final int DEFAULT_FROM- See Also:
-
-
Constructor Details
-
MessagesRequestSpec
public MessagesRequestSpec(String queryString, Set<String> streams, TimeRange timerange, String sort, SortSpec.Direction sortOrder, int from, int size, List<String> fields) Creates an instance of aMessagesRequestSpecrecord class.- Parameters:
queryString- the value for thequeryStringrecord componentstreams- the value for thestreamsrecord componenttimerange- the value for thetimerangerecord componentsort- the value for thesortrecord componentsortOrder- the value for thesortOrderrecord componentfrom- the value for thefromrecord componentsize- the value for thesizerecord componentfields- the value for thefieldsrecord component
-
-
Method Details
-
getSchema
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
queryString
Returns the value of thequeryStringrecord component.- Specified by:
queryStringin interfaceSearchRequestSpec- Returns:
- the value of the
queryStringrecord component
-
streams
Returns the value of thestreamsrecord component.- Specified by:
streamsin interfaceSearchRequestSpec- Returns:
- the value of the
streamsrecord component
-
timerange
Returns the value of thetimerangerecord component.- Specified by:
timerangein interfaceSearchRequestSpec- Returns:
- the value of the
timerangerecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-
sortOrder
Returns the value of thesortOrderrecord component.- Returns:
- the value of the
sortOrderrecord component
-
from
public int from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-