java.lang.Object
java.lang.Record
org.elasticsearch.indices.DateFieldRangeInfo
- Record Components:
timestampFieldType
- field type for the @timestamp fieldtimestampRange
- min/max range for the @timestamp field (in a specific index)eventIngestedFieldType
- field type for the 'event.ingested' fieldeventIngestedRange
- min/max range for the 'event.ingested' field (in a specific index)
public record DateFieldRangeInfo(DateFieldMapper.DateFieldType timestampFieldType, IndexLongFieldRange timestampRange, DateFieldMapper.DateFieldType eventIngestedFieldType, IndexLongFieldRange eventIngestedRange)
extends Record
Data holder of timestamp fields held in cluster state IndexMetadata.
-
Constructor Summary
ConstructorsConstructorDescriptionDateFieldRangeInfo
(DateFieldMapper.DateFieldType timestampFieldType, IndexLongFieldRange timestampRange, DateFieldMapper.DateFieldType eventIngestedFieldType, IndexLongFieldRange eventIngestedRange) Creates an instance of aDateFieldRangeInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theeventIngestedFieldType
record component.Returns the value of theeventIngestedRange
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetimestampFieldType
record component.Returns the value of thetimestampRange
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DateFieldRangeInfo
public DateFieldRangeInfo(DateFieldMapper.DateFieldType timestampFieldType, IndexLongFieldRange timestampRange, DateFieldMapper.DateFieldType eventIngestedFieldType, IndexLongFieldRange eventIngestedRange) Creates an instance of aDateFieldRangeInfo
record class.- Parameters:
timestampFieldType
- the value for thetimestampFieldType
record componenttimestampRange
- the value for thetimestampRange
record componenteventIngestedFieldType
- the value for theeventIngestedFieldType
record componenteventIngestedRange
- the value for theeventIngestedRange
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
timestampFieldType
Returns the value of thetimestampFieldType
record component.- Returns:
- the value of the
timestampFieldType
record component
-
timestampRange
Returns the value of thetimestampRange
record component.- Returns:
- the value of the
timestampRange
record component
-
eventIngestedFieldType
Returns the value of theeventIngestedFieldType
record component.- Returns:
- the value of the
eventIngestedFieldType
record component
-
eventIngestedRange
Returns the value of theeventIngestedRange
record component.- Returns:
- the value of the
eventIngestedRange
record component
-