Record Class SearchJobDTO

java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.rest.SearchJobDTO

public record SearchJobDTO(SearchJobIdentifier searchJobIdentifier, Set<SearchError> errors, Map<String,QueryResult> results, ExecutionInfo execution) extends Record
  • Constructor Details

    • SearchJobDTO

      public SearchJobDTO(SearchJobIdentifier searchJobIdentifier, Set<SearchError> errors, Map<String,QueryResult> results, ExecutionInfo execution)
      Creates an instance of a SearchJobDTO record class.
      Parameters:
      searchJobIdentifier - the value for the searchJobIdentifier record component
      errors - the value for the errors record component
      results - the value for the results record component
      execution - the value for the execution record component
  • Method Details

    • fromSearchJob

      public static SearchJobDTO fromSearchJob(SearchJob searchJob)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • searchJobIdentifier

      public SearchJobIdentifier searchJobIdentifier()
      Returns the value of the searchJobIdentifier record component.
      Returns:
      the value of the searchJobIdentifier record component
    • errors

      public Set<SearchError> errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component
    • results

      public Map<String,QueryResult> results()
      Returns the value of the results record component.
      Returns:
      the value of the results record component
    • execution

      public ExecutionInfo execution()
      Returns the value of the execution record component.
      Returns:
      the value of the execution record component