Package org.elasticsearch.index.mapper
Record Class MapperTestCase.SortShortcutSupport
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.MapperTestCase.SortShortcutSupport
- Enclosing class:
MapperTestCase
public static record MapperTestCase.SortShortcutSupport(IndexVersion indexVersion, Settings settings, String fieldname, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> fieldMapping, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> additionalMappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> document, Consumer<org.apache.lucene.search.DocIdSetIterator> competitiveIteratorCheck)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSortShortcutSupport(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document, boolean supportsShortcut) SortShortcutSupport(IndexVersion indexVersion, Settings settings, String fieldname, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> fieldMapping, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> additionalMappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document, Consumer<org.apache.lucene.search.DocIdSetIterator> competitiveIteratorCheck) Creates an instance of aSortShortcutSupportrecord class.SortShortcutSupport(IndexVersion indexVersion, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document, boolean supportsShortcut) -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> Returns the value of theadditionalMappingsrecord component.Consumer<org.apache.lucene.search.DocIdSetIterator> Returns the value of thecompetitiveIteratorCheckrecord component.org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> Returns the value of thefieldMappingrecord component.Returns the value of thefieldnamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexVersionrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SortShortcutSupport
public SortShortcutSupport(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document, boolean supportsShortcut) -
SortShortcutSupport
public SortShortcutSupport(IndexVersion indexVersion, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> mappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document, boolean supportsShortcut) -
SortShortcutSupport
public SortShortcutSupport(IndexVersion indexVersion, Settings settings, String fieldname, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> fieldMapping, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> additionalMappings, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> document, Consumer<org.apache.lucene.search.DocIdSetIterator> competitiveIteratorCheck) Creates an instance of aSortShortcutSupportrecord class.- Parameters:
indexVersion- the value for theindexVersionrecord componentsettings- the value for thesettingsrecord componentfieldname- the value for thefieldnamerecord componentfieldMapping- the value for thefieldMappingrecord componentadditionalMappings- the value for theadditionalMappingsrecord componentdocument- the value for thedocumentrecord componentcompetitiveIteratorCheck- the value for thecompetitiveIteratorCheckrecord 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). -
indexVersion
Returns the value of theindexVersionrecord component.- Returns:
- the value of the
indexVersionrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
fieldname
Returns the value of thefieldnamerecord component.- Returns:
- the value of the
fieldnamerecord component
-
fieldMapping
public org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> fieldMapping()Returns the value of thefieldMappingrecord component.- Returns:
- the value of the
fieldMappingrecord component
-
additionalMappings
public org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> additionalMappings()Returns the value of theadditionalMappingsrecord component.- Returns:
- the value of the
additionalMappingsrecord component
-
document
public org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> document()Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
competitiveIteratorCheck
Returns the value of thecompetitiveIteratorCheckrecord component.- Returns:
- the value of the
competitiveIteratorCheckrecord component
-