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 ParseField
FILTER_FIELD
static ParseField
MAX_CHILDREN_FIELD
static ParseField
NESTED_FIELD
static ParseField
PATH_FIELD
-
Constructor Summary
Constructors Constructor Description NestedSortBuilder(java.lang.String path)
NestedSortBuilder(StreamInput in)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static NestedSortBuilder
fromXContent(XContentParser parser)
QueryBuilder
getFilter()
int
getMaxChildren()
NestedSortBuilder
getNestedSort()
java.lang.String
getPath()
int
hashCode()
NestedSortBuilder
rewrite(QueryRewriteContext ctx)
NestedSortBuilder
setFilter(QueryBuilder filter)
NestedSortBuilder
setMaxChildren(int maxChildren)
NestedSortBuilder
setNestedSort(NestedSortBuilder nestedSortBuilder)
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
-
Field Details
-
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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
fromXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
rewrite
- Throws:
java.io.IOException
-