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