public class InternalAdjacencyMatrix extends InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket> implements AdjacencyMatrix
Modifier and Type | Class and Description |
---|---|
static class |
InternalAdjacencyMatrix.InternalBucket |
InternalAggregation.CommonFields, InternalAggregation.ReduceContext
AdjacencyMatrix.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
metaData, name
EMPTY_PARAMS
Constructor and Description |
---|
InternalAdjacencyMatrix(StreamInput in)
Read from a stream.
|
InternalAdjacencyMatrix(java.lang.String name,
java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
getProperty
getMetaData, getName, getProperty, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getProperty
isFragment
public InternalAdjacencyMatrix(java.lang.String name, java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
public InternalAdjacencyMatrix(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class InternalAggregation
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable
public InternalAdjacencyMatrix create(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public InternalAdjacencyMatrix.InternalBucket createBucket(InternalAggregations aggregations, InternalAdjacencyMatrix.InternalBucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypepublic java.util.List<InternalAdjacencyMatrix.InternalBucket> getBuckets()
AdjacencyMatrix
getBuckets
in interface AdjacencyMatrix
getBuckets
in interface MultiBucketsAggregation
public InternalAdjacencyMatrix.InternalBucket getBucketByKey(java.lang.String key)
getBucketByKey
in interface AdjacencyMatrix
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class InternalAggregation
java.io.IOException