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 aDateFieldRangeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventIngestedFieldTyperecord component.Returns the value of theeventIngestedRangerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetimestampFieldTyperecord component.Returns the value of thetimestampRangerecord component.final StringtoString()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 aDateFieldRangeInforecord class.- Parameters:
timestampFieldType- the value for thetimestampFieldTyperecord componenttimestampRange- the value for thetimestampRangerecord componenteventIngestedFieldType- the value for theeventIngestedFieldTyperecord componenteventIngestedRange- the value for theeventIngestedRangerecord 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 thetimestampFieldTyperecord component.- Returns:
- the value of the
timestampFieldTyperecord component
-
timestampRange
Returns the value of thetimestampRangerecord component.- Returns:
- the value of the
timestampRangerecord component
-
eventIngestedFieldType
Returns the value of theeventIngestedFieldTyperecord component.- Returns:
- the value of the
eventIngestedFieldTyperecord component
-
eventIngestedRange
Returns the value of theeventIngestedRangerecord component.- Returns:
- the value of the
eventIngestedRangerecord component
-