Class NestedSortBuilder

java.lang.Object
org.elasticsearch.search.sort.NestedSortBuilder
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class NestedSortBuilder
extends java.lang.Object
implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
  • Field Details

    • NESTED_FIELD

      public static final org.elasticsearch.common.ParseField NESTED_FIELD
    • PATH_FIELD

      public static final org.elasticsearch.common.ParseField PATH_FIELD
    • FILTER_FIELD

      public static final org.elasticsearch.common.ParseField FILTER_FIELD
    • MAX_CHILDREN_FIELD

      public static final org.elasticsearch.common.ParseField MAX_CHILDREN_FIELD
  • Constructor Details

    • NestedSortBuilder

      public NestedSortBuilder​(java.lang.String path)
    • NestedSortBuilder

      public NestedSortBuilder​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • getPath

      public java.lang.String getPath()
    • getFilter

      public QueryBuilder getFilter()
    • getMaxChildren

      public int getMaxChildren()
    • setFilter

      public NestedSortBuilder setFilter​(QueryBuilder filter)
    • setMaxChildren

      public NestedSortBuilder setMaxChildren​(int maxChildren)
    • getNestedSort

      public NestedSortBuilder getNestedSort()
    • setNestedSort

      public NestedSortBuilder setNestedSort​(NestedSortBuilder nestedSortBuilder)
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Write this object's fields to a StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • fromXContent

      public static NestedSortBuilder fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • rewrite

      public NestedSortBuilder rewrite​(QueryRewriteContext ctx) throws java.io.IOException
      Throws:
      java.io.IOException