Class EmptyField

java.lang.Object
org.elasticsearch.script.field.EmptyField
All Implemented Interfaces:
Field

public class EmptyField extends Object implements Field
Script field with no mapping, always returns defaultValue.
  • Constructor Details

    • EmptyField

      public EmptyField(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Field
      Returns the name of this field.
      Specified by:
      getName in interface Field
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Field
      Returns true if this field has no values, otherwise false.
      Specified by:
      isEmpty in interface Field
    • size

      public int size()
      Description copied from interface: Field
      Returns the number of values this field has.
      Specified by:
      size in interface Field