Class KeywordEsField

java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.KeywordEsField
All Implemented Interfaces:
Writeable

public class KeywordEsField extends EsField
Information about a field in an ES index with the keyword type.
  • Constructor Details

    • KeywordEsField

      public KeywordEsField(String name)
    • KeywordEsField

      public KeywordEsField(String name, Map<String,EsField> properties, boolean hasDocValues, int precision, boolean normalized)
    • KeywordEsField

      public KeywordEsField(String name, Map<String,EsField> properties, boolean hasDocValues, int precision, boolean normalized, boolean isAlias)
    • KeywordEsField

      protected KeywordEsField(String name, DataType esDataType, Map<String,EsField> properties, boolean hasDocValues, int precision, boolean normalized, boolean isAlias)
    • KeywordEsField

      public KeywordEsField(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeContent

      public void writeContent(StreamOutput out) throws IOException
      Description copied from class: EsField
      This needs to be overridden by subclasses for specific serialization
      Overrides:
      writeContent in class EsField
      Throws:
      IOException
    • getWriteableName

      public String getWriteableName()
      Description copied from class: EsField
      This needs to be overridden by subclasses for specific serialization
      Overrides:
      getWriteableName in class EsField
    • getPrecision

      public int getPrecision()
    • getNormalized

      public boolean getNormalized()
    • getExactInfo

      public EsField.Exact getExactInfo()
      Description copied from class: EsField
      Returns and EsField.Exact object 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:
      getExactInfo in class EsField
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class EsField
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EsField