java.lang.Object
org.elasticsearch.search.SearchSortValues
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SearchSortValuesfromFormattedAndRaw(Object[] formattedSortValues, Object[] rawSortValues) Build sort values from pre-formatted and raw arrays.Object[]Returns the formatted version of the values that sorting was performed againstObject[]Returns the raw version of the values that sorting was performed againstinthashCode()static SearchSortValuesreadFrom(StreamInput in) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
SearchSortValues
-
-
Method Details
-
readFrom
- Throws:
IOException
-
fromFormattedAndRaw
public static SearchSortValues fromFormattedAndRaw(Object[] formattedSortValues, Object[] rawSortValues) Build sort values from pre-formatted and raw arrays. Use this when the formatted values were produced with the correct per-field format (e.g. from a shard hit) and must not be re-formatted with a single format like RAW, which would fail for non-UTF-8 BytesRefs (e.g. version field). -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getFormattedSortValues
Returns the formatted version of the values that sorting was performed against -
getRawSortValues
Returns the raw version of the values that sorting was performed against -
equals
-
hashCode
public int hashCode()
-