Package org.elasticsearch.search.sort
Class NestedSortBuilder
- java.lang.Object
-
- org.elasticsearch.search.sort.NestedSortBuilder
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class NestedSortBuilder extends java.lang.Object implements Writeable, ToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested 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 ParseFieldFILTER_FIELDstatic ParseFieldNESTED_FIELDstatic ParseFieldPATH_FIELD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description NestedSortBuilder(java.lang.String path)NestedSortBuilder(StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static NestedSortBuilderfromXContent(XContentParser parser)QueryBuildergetFilter()NestedSortBuildergetNestedSort()java.lang.StringgetPath()inthashCode()NestedSortBuilderrewrite(QueryRewriteContext ctx)NestedSortBuildersetFilter(QueryBuilder filter)NestedSortBuildersetNestedSort(NestedSortBuilder nestedSortBuilder)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
NESTED_FIELD
public static final ParseField NESTED_FIELD
-
PATH_FIELD
public static final ParseField PATH_FIELD
-
FILTER_FIELD
public static final ParseField FILTER_FIELD
-
-
Constructor Detail
-
NestedSortBuilder
public NestedSortBuilder(java.lang.String path)
-
NestedSortBuilder
public NestedSortBuilder(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getPath
public java.lang.String getPath()
-
getFilter
public QueryBuilder getFilter()
-
setFilter
public NestedSortBuilder setFilter(QueryBuilder filter)
-
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.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
fromXContent
public static NestedSortBuilder fromXContent(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
public NestedSortBuilder rewrite(QueryRewriteContext ctx) throws java.io.IOException
- Throws:
java.io.IOException
-
-