public static class InternalOrder.Streams
extends java.lang.Object
BucketOrder from/to streams.| Constructor and Description |
|---|
Streams() |
| Modifier and Type | Method and Description |
|---|---|
static BucketOrder |
readHistogramOrder(StreamInput in,
boolean bwcOrderFlag)
ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to read a
BucketOrder from a StreamInput. |
static BucketOrder |
readOrder(StreamInput in)
Read a
BucketOrder from a StreamInput. |
static void |
writeHistogramOrder(BucketOrder order,
StreamOutput out,
boolean bwcOrderFlag)
ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to write a
BucketOrder to a stream. |
static void |
writeOrder(BucketOrder order,
StreamOutput out)
Write a
BucketOrder to a StreamOutput. |
public static BucketOrder readOrder(StreamInput in) throws java.io.IOException
BucketOrder from a StreamInput.in - stream with order data to read.java.io.IOException - on error reading from the stream.public static BucketOrder readHistogramOrder(StreamInput in, boolean bwcOrderFlag) throws java.io.IOException
BucketOrder from a StreamInput.in - stream with order data to read.bwcOrderFlag - true to check in.readBoolean() in the backwards compat logic before reading
the order. false to skip this flag (order always present).java.io.IOException - on error reading from the stream.public static void writeOrder(BucketOrder order, StreamOutput out) throws java.io.IOException
BucketOrder to a StreamOutput.order - order to write to the stream.out - stream to write the order to.java.io.IOException - on error writing to the stream.public static void writeHistogramOrder(BucketOrder order, StreamOutput out, boolean bwcOrderFlag) throws java.io.IOException
BucketOrder to a stream.order - order to write to the stream.out - stream to write the order to.bwcOrderFlag - true to always out.writeBoolean(true) for the backwards compat logic before
writing the order. false to skip this flag.java.io.IOException - on error writing to the stream.