Class KeywordEsField
java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.KeywordEsField
- All Implemented Interfaces:
Writeable
- Direct Known Subclasses:
PotentiallyUnmappedKeywordEsField
Information about a field in an ES index with the
keyword type.-
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> -
Constructor Summary
ConstructorsModifierConstructorDescriptionKeywordEsField(String name, Map<String, EsField> properties, boolean hasDocValues, int precision, boolean normalized, boolean isAlias, EsField.TimeSeriesFieldType timeSeriesFieldType) protectedKeywordEsField(String name, DataType esDataType, Map<String, EsField> properties, boolean hasDocValues, int precision, boolean normalized, boolean isAlias, EsField.TimeSeriesFieldType timeSeriesFieldType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns andEsField.Exactobject with all the necessary info about the field: If it has an exact underlying field or not and if not an error message why it doesn'tbooleanintgetWriteableName(TransportVersion transportVersion) This needs to be overridden by subclasses for specific serializationinthashCode()voidwriteContent(StreamOutput out) This needs to be overridden by subclasses for specific serializationMethods inherited from class org.elasticsearch.xpack.esql.core.type.EsField
getDataType, getExactField, getName, getNodeStringName, getProperties, getReader, getTimeSeriesFieldType, isAggregatable, isAlias, readFrom, readTimeSeriesFieldType, toString, withDataType, withWidenedSmallNumeric, writeTimeSeriesFieldType, writeTo
-
Constructor Details
-
KeywordEsField
public KeywordEsField(String name, Map<String, EsField> properties, boolean hasDocValues, int precision, boolean normalized, boolean isAlias, EsField.TimeSeriesFieldType timeSeriesFieldType) -
KeywordEsField
-
KeywordEsField
- Throws:
IOException
-
-
Method Details
-
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
-
getPrecision
public int getPrecision() -
getNormalized
public boolean getNormalized() -
getExactInfo
Description copied from class:EsFieldReturns andEsField.Exactobject with all the necessary info about the field:- If it has an exact underlying field or not
- and if not an error message why it doesn't
- Overrides:
getExactInfoin classEsField
-
equals
-
hashCode
public int hashCode()
-