NamedWriteable, Writeable, ToXContent, ToXContentFragment, Aggregation, AdjacencyMatrix, MultiBucketsAggregationpublic class InternalAdjacencyMatrix extends InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket> implements AdjacencyMatrix
| Modifier and Type | Class | Description |
|---|---|---|
static class |
InternalAdjacencyMatrix.InternalBucket |
AdjacencyMatrix.BucketAggregation.CommonFieldsInternalAggregation.ReduceContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>TYPED_KEYS_DELIMITERmetaData, nameEMPTY_PARAMS| Constructor | Description |
|---|---|
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) |
|
InternalAdjacencyMatrix(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
InternalAdjacencyMatrix |
create(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets) |
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
InternalAdjacencyMatrix.InternalBucket |
createBucket(InternalAggregations aggregations,
InternalAdjacencyMatrix.InternalBucket prototype) |
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected boolean |
doEquals(java.lang.Object obj) |
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode() |
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
|
protected void |
doWriteTo(StreamOutput out) |
|
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
InternalAdjacencyMatrix.InternalBucket |
getBucketByKey(java.lang.String key) |
|
java.util.List<InternalAdjacencyMatrix.InternalBucket> |
getBuckets() |
The buckets created by this aggregation.
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
getMetaData, getName, getTypeequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTocountInnerBucket, countInnerBucket, getPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waittoXContentisFragmentpublic 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.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic InternalAdjacencyMatrix create(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets)
InternalMultiBucketAggregationAggregation 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 AggregationAggregationpublic InternalAdjacencyMatrix.InternalBucket createBucket(InternalAggregations aggregations, InternalAdjacencyMatrix.InternalBucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.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()
AdjacencyMatrixgetBuckets in interface AdjacencyMatrixgetBuckets in interface MultiBucketsAggregationgetBuckets in class InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>public InternalAdjacencyMatrix.InternalBucket getBucketByKey(java.lang.String key)
getBucketByKey in interface AdjacencyMatrixpublic InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOExceptionprotected int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode in class InternalAggregationprotected boolean doEquals(java.lang.Object obj)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalAggregation