public class AggregationStreams extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AggregationStreams.Stream
A stream that knows how to read an aggregation from the input.
|
Constructor and Description |
---|
AggregationStreams() |
Modifier and Type | Method and Description |
---|---|
static void |
registerStream(AggregationStreams.Stream stream,
BytesReference... types)
Registers the given stream and associate it with the given types.
|
static AggregationStreams.Stream |
stream(BytesReference type)
Returns the stream that is registered for the given type
|
public static void registerStream(AggregationStreams.Stream stream, BytesReference... types)
stream
- The streams to registertypes
- The types associated with the streamspublic static AggregationStreams.Stream stream(BytesReference type)
type
- The given typeCopyright © 2009–2016. All rights reserved.