Package org.elasticsearch.search.sort
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldFILTER_FIELDstatic org.elasticsearch.common.ParseFieldMAX_CHILDREN_FIELDstatic org.elasticsearch.common.ParseFieldNESTED_FIELDstatic org.elasticsearch.common.ParseFieldPATH_FIELD -
Constructor Summary
Constructors Constructor Description NestedSortBuilder(java.lang.String path)NestedSortBuilder(StreamInput in) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)static NestedSortBuilderfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)QueryBuildergetFilter()intgetMaxChildren()NestedSortBuildergetNestedSort()java.lang.StringgetPath()inthashCode()NestedSortBuilderrewrite(QueryRewriteContext ctx)NestedSortBuildersetFilter(QueryBuilder filter)NestedSortBuildersetMaxChildren(int maxChildren)NestedSortBuildersetNestedSort(NestedSortBuilder nestedSortBuilder)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.
-
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
- Throws:
java.io.IOException
-
-
Method Details
-
getPath
public java.lang.String getPath() -
getFilter
-
getMaxChildren
public int getMaxChildren() -
setFilter
-
setMaxChildren
-
getNestedSort
-
setNestedSort
-
writeTo
Write this object's fields to a StreamOutput. -
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:
toXContentin interfaceorg.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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
rewrite
- Throws:
java.io.IOException
-