Class NestedDocument

java.lang.Object
org.elasticsearch.script.field.NestedDocument

public class NestedDocument extends Object
  • Constructor Details

  • Method Details

    • field

      public WriteField field(String path)
      Get a WriteField inside this NestedDocument, all operation on the WriteField are relative to this NestedDocument.
    • fields

      public Stream<WriteField> fields(String glob)
      Stream all WriteFields in this NestedDocument.
    • isEmpty

      public boolean isEmpty()
      Are there any WriteFields inside this NestedDocument?
    • size

      public int size()
      The number of fields in this NestedDocument.
    • exists

      public boolean exists()
      Has this NestedDocument been removed?
    • remove

      public void remove()
      Remove this NestedDocument
    • getDoc

      protected Map<String,Object> getDoc()
      Return the underlying doc for using this class as a root supplier.