Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Record Class IgnoredFieldsSpec
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.IgnoredFieldsSpec
public record IgnoredFieldsSpec(Set<String> requiredIgnoredFields, IgnoredSourceFieldMapper.IgnoredSourceFormat format)
extends Record
Defines which fields need to be loaded from _ignored_source during a fetch.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIgnoredFieldsSpec(Set<String> requiredIgnoredFields, IgnoredSourceFieldMapper.IgnoredSourceFormat format) Creates an instance of aIgnoredFieldsSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.merge(IgnoredFieldsSpec other) booleanReturns the value of therequiredIgnoredFieldsrecord component.Get the set of stored fields required to load the specified fields from _ignored_source.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
-
Constructor Details
-
IgnoredFieldsSpec
public IgnoredFieldsSpec(Set<String> requiredIgnoredFields, IgnoredSourceFieldMapper.IgnoredSourceFormat format) Creates an instance of aIgnoredFieldsSpecrecord class.- Parameters:
requiredIgnoredFields- the value for therequiredIgnoredFieldsrecord componentformat- the value for theformatrecord component
-
-
Method Details
-
noRequirements
public boolean noRequirements() -
merge
-
requiredStoredFields
Get the set of stored fields required to load the specified fields from _ignored_source. -
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). -
requiredIgnoredFields
Returns the value of therequiredIgnoredFieldsrecord component.- Returns:
- the value of the
requiredIgnoredFieldsrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-