Package org.elasticsearch.index.mapper
Record Class MapperTestCase.BlockReaderSupport
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.MapperTestCase.BlockReaderSupport
- Record Components:
columnAtATimeReader
- true if the field supports column at a time readers (doc-values)syntheticSource
- true if the field supports synthetic sourcemapper
- the mapper service to use for testingloaderFieldName
- the field name to use for loading the field
- Enclosing class:
- MapperTestCase
public static record MapperTestCase.BlockReaderSupport(boolean columnAtATimeReader, boolean syntheticSource, MapperService mapper, String loaderFieldName)
extends Record
This record encapsulates the test configuration for testing block loaders (used in ES|QL).
-
Constructor Summary
ConstructorsConstructorDescriptionBlockReaderSupport
(boolean columnAtATimeReader, boolean syntheticSource, MapperService mapper, String loaderFieldName) Creates an instance of aBlockReaderSupport
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecolumnAtATimeReader
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theloaderFieldName
record component.mapper()
Returns the value of themapper
record component.boolean
Returns the value of thesyntheticSource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BlockReaderSupport
public BlockReaderSupport(boolean columnAtATimeReader, boolean syntheticSource, MapperService mapper, String loaderFieldName) Creates an instance of aBlockReaderSupport
record class.- Parameters:
columnAtATimeReader
- the value for thecolumnAtATimeReader
record componentsyntheticSource
- the value for thesyntheticSource
record componentmapper
- the value for themapper
record componentloaderFieldName
- the value for theloaderFieldName
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
columnAtATimeReader
public boolean columnAtATimeReader()Returns the value of thecolumnAtATimeReader
record component.- Returns:
- the value of the
columnAtATimeReader
record component
-
syntheticSource
public boolean syntheticSource()Returns the value of thesyntheticSource
record component.- Returns:
- the value of the
syntheticSource
record component
-
mapper
Returns the value of themapper
record component.- Returns:
- the value of the
mapper
record component
-
loaderFieldName
Returns the value of theloaderFieldName
record component.- Returns:
- the value of the
loaderFieldName
record component
-