Package org.graylog.plugins.views.search
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 Summary
ConstructorsConstructorDescriptionIndexRangeResult(String indexName, long begin, long end, boolean isWarmTiered, Collection<String> streamNames) Creates an instance of aIndexRangeResultrecord class.IndexRangeResult(String indexName, long begin, long end, Collection<String> streamNames) -
Method Summary
Modifier and TypeMethodDescriptionlongbegin()Returns the value of thebeginrecord component.longend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.fromIndexRange(IndexRange indexRange, Collection<String> streamNames) final inthashCode()Returns a hash code value for this object.Returns the value of theindexNamerecord component.booleanReturns the value of theisWarmTieredrecord component.Returns the value of thestreamNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexRangeResult
-
IndexRangeResult
public IndexRangeResult(String indexName, long begin, long end, boolean isWarmTiered, Collection<String> streamNames) Creates an instance of aIndexRangeResultrecord class.- Parameters:
indexName- the value for theindexNamerecord componentbegin- the value for thebeginrecord componentend- the value for theendrecord componentisWarmTiered- the value for theisWarmTieredrecord componentstreamNames- the value for thestreamNamesrecord component
-
-
Method Details
-
fromIndexRange
public static ExplainResults.IndexRangeResult fromIndexRange(IndexRange indexRange, Collection<String> streamNames) -
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 '=='. -
indexName
Returns the value of theindexNamerecord component.- Returns:
- the value of the
indexNamerecord component
-
begin
public long begin()Returns the value of thebeginrecord component.- Returns:
- the value of the
beginrecord component
-
end
public long end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
isWarmTiered
public boolean isWarmTiered()Returns the value of theisWarmTieredrecord component.- Returns:
- the value of the
isWarmTieredrecord component
-
streamNames
Returns the value of thestreamNamesrecord component.- Returns:
- the value of the
streamNamesrecord component
-