Class InternalOrder.Streams
java.lang.Object
org.elasticsearch.search.aggregations.InternalOrder.Streams
- Enclosing class:
- InternalOrder
Contains logic for reading/writing
BucketOrder
from/to streams.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BucketOrder
ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to read aBucketOrder
from aStreamInput
.static BucketOrder
readOrder(StreamInput in)
Read aBucketOrder
from aStreamInput
.static void
writeHistogramOrder(BucketOrder order, StreamOutput out)
ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to write aBucketOrder
to a stream.static void
writeOrder(BucketOrder order, StreamOutput out)
Write aBucketOrder
to aStreamOutput
.
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
readOrder
Read aBucketOrder
from aStreamInput
.- Parameters:
in
- stream with order data to read.- Returns:
- order read from the stream
- Throws:
IOException
- on error reading from the stream.
-
readHistogramOrder
ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to read aBucketOrder
from aStreamInput
.- Parameters:
in
- stream with order data to read.- Returns:
- order read from the stream
- Throws:
IOException
- on error reading from the stream.
-
writeOrder
Write aBucketOrder
to aStreamOutput
.- Parameters:
order
- order to write to the stream.out
- stream to write the order to.- Throws:
IOException
- on error writing to the stream.
-
writeHistogramOrder
ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to write aBucketOrder
to a stream.- Parameters:
order
- order to write to the stream.out
- stream to write the order to.- Throws:
IOException
- on error writing to the stream.
-