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 aBlockReaderSupportrecord class.BlockReaderSupport(boolean columnAtATimeReader, MapperService mapper, String loaderFieldName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecolumnAtATimeReaderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theloaderFieldNamerecord component.mapper()Returns the value of themapperrecord component.booleanReturns the value of thesyntheticSourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockReaderSupport
public BlockReaderSupport(boolean columnAtATimeReader, MapperService mapper, String loaderFieldName) -
BlockReaderSupport
public BlockReaderSupport(boolean columnAtATimeReader, boolean syntheticSource, MapperService mapper, String loaderFieldName) Creates an instance of aBlockReaderSupportrecord class.- Parameters:
columnAtATimeReader- the value for thecolumnAtATimeReaderrecord componentsyntheticSource- the value for thesyntheticSourcerecord componentmapper- the value for themapperrecord componentloaderFieldName- the value for theloaderFieldNamerecord 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 thecolumnAtATimeReaderrecord component.- Returns:
- the value of the
columnAtATimeReaderrecord component
-
syntheticSource
public boolean syntheticSource()Returns the value of thesyntheticSourcerecord component.- Returns:
- the value of the
syntheticSourcerecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
loaderFieldName
Returns the value of theloaderFieldNamerecord component.- Returns:
- the value of the
loaderFieldNamerecord component
-