Class CompactInvalidMappedField
java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.TypeConflictedField
org.elasticsearch.xpack.esql.core.type.CompactInvalidMappedField
- All Implemented Interfaces:
Writeable
Memory-frugal counterpart to
InvalidMappedField: stores at most 3 concrete index names per source
type alongside an integer count of the names that were dropped. Together they let TypeConflictedField.errorMessage() reconstruct the same
"and [N] other indices" rendering the full per-type list would have produced, without retaining the full list.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.type.EsField
EsField.Exact, EsField.TimeSeriesFieldTypeNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Method Summary
Modifier and TypeMethodDescriptionbooleanPer-source-type indices in which the field appears with that type.getWriteableName(TransportVersion transportVersion) This needs to be overridden by subclasses for specific serializationinthashCode()booleanWhether the field is unmapped in at least one index, in which case it's treated asDataType.KEYWORDwhere it is unmapped.static CompactInvalidMappedFieldmappedEverywhere(String name, Map<DataType, Set<String>> typesToIndices, Map<Set<String>, Set<String>> indexDedupCache) static CompactInvalidMappedFieldpotentiallyUnmapped(String name, Map<DataType, Set<String>> typesToIndices, Map<Set<String>, Set<String>> indexDedupCache) types()Source data types observed for this field across all indices.voidwriteContent(StreamOutput out) This needs to be overridden by subclasses for specific serializationMethods inherited from class org.elasticsearch.xpack.esql.core.type.TypeConflictedField
errorMessage, getExactField, getExactInfo, isSingleTypePotentiallyUnmapped, singleMappedType, singleMappedTypeWidenedMethods inherited from class org.elasticsearch.xpack.esql.core.type.EsField
getDataType, getName, getNodeStringName, getProperties, getReader, getTimeSeriesFieldType, isAggregatable, isAlias, readFrom, readTimeSeriesFieldType, toString, withDataType, withWidenedSmallNumeric, writeTimeSeriesFieldType, writeTo
-
Method Details
-
mappedEverywhere
-
potentiallyUnmapped
-
writeContent
Description copied from class:EsFieldThis needs to be overridden by subclasses for specific serialization- Overrides:
writeContentin classEsField- Throws:
IOException
-
getWriteableName
Description copied from class:EsFieldThis needs to be overridden by subclasses for specific serialization- Overrides:
getWriteableNamein classEsField
-
getTypesToIndices
Description copied from class:TypeConflictedFieldPer-source-type indices in which the field appears with that type. Note thatCompactInvalidMappedFieldcaps each set and may include the"..."sentinel; callers that need a complete index list should useInvalidMappedFieldinstead.- Specified by:
getTypesToIndicesin classTypeConflictedField
-
isPotentiallyUnmapped
public boolean isPotentiallyUnmapped()Description copied from class:TypeConflictedFieldWhether the field is unmapped in at least one index, in which case it's treated asDataType.KEYWORDwhere it is unmapped.- Specified by:
isPotentiallyUnmappedin classTypeConflictedField
-
types
Description copied from class:TypeConflictedFieldSource data types observed for this field across all indices.- Specified by:
typesin classTypeConflictedField
-
hashCode
public int hashCode() -
equals
-