Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Record Class AbstractGeometryFieldMapper.DefaultMalformedValueHandler
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.DefaultMalformedValueHandler
- All Implemented Interfaces:
AbstractGeometryFieldMapper.MalformedValueHandler
- Enclosing class:
AbstractGeometryFieldMapper<T>
public static record AbstractGeometryFieldMapper.DefaultMalformedValueHandler(CheckedBiConsumer<Exception,XContentBuilder,IOException> consumer)
extends Record
implements AbstractGeometryFieldMapper.MalformedValueHandler
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aDefaultMalformedValueHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsumer()Returns the value of theconsumerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidvoidnotify(Exception parsingException, XContentBuilder malformedDataForSyntheticSource) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultMalformedValueHandler
public DefaultMalformedValueHandler(CheckedBiConsumer<Exception, XContentBuilder, IOException> consumer) Creates an instance of aDefaultMalformedValueHandlerrecord class.- Parameters:
consumer- the value for theconsumerrecord component
-
-
Method Details
-
notify
- Specified by:
notifyin interfaceAbstractGeometryFieldMapper.MalformedValueHandler- Throws:
IOException
-
notify
public void notify(Exception parsingException, XContentBuilder malformedDataForSyntheticSource) throws IOException - Specified by:
notifyin interfaceAbstractGeometryFieldMapper.MalformedValueHandler- Throws:
IOException
-
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). -
consumer
Returns the value of theconsumerrecord component.- Returns:
- the value of the
consumerrecord component
-