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