Record Class ExplainResults.IndexRangeResult

java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.ExplainResults.IndexRangeResult
Enclosing class:
ExplainResults

public static record ExplainResults.IndexRangeResult(String indexName, long begin, long end, boolean isWarmTiered, Collection<String> streamNames) extends Record
  • Constructor Details

    • IndexRangeResult

      public IndexRangeResult(String indexName, long begin, long end, Collection<String> streamNames)
    • IndexRangeResult

      public IndexRangeResult(String indexName, long begin, long end, boolean isWarmTiered, Collection<String> streamNames)
      Creates an instance of a IndexRangeResult record class.
      Parameters:
      indexName - the value for the indexName record component
      begin - the value for the begin record component
      end - the value for the end record component
      isWarmTiered - the value for the isWarmTiered record component
      streamNames - the value for the streamNames record component
  • Method Details

    • fromIndexRange

      public static ExplainResults.IndexRangeResult fromIndexRange(IndexRange indexRange, Collection<String> streamNames)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • indexName

      public String indexName()
      Returns the value of the indexName record component.
      Returns:
      the value of the indexName record component
    • begin

      public long begin()
      Returns the value of the begin record component.
      Returns:
      the value of the begin record component
    • end

      public long end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • isWarmTiered

      public boolean isWarmTiered()
      Returns the value of the isWarmTiered record component.
      Returns:
      the value of the isWarmTiered record component
    • streamNames

      public Collection<String> streamNames()
      Returns the value of the streamNames record component.
      Returns:
      the value of the streamNames record component