Class InternalAdjacencyMatrix
- java.lang.Object
-
- org.elasticsearch.search.aggregations.InternalAggregation
-
- org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
-
- org.elasticsearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrix
-
- All Implemented Interfaces:
NamedWriteable
,Writeable
,ToXContent
,ToXContentFragment
,Aggregation
,AdjacencyMatrix
,MultiBucketsAggregation
public class InternalAdjacencyMatrix extends InternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket> implements AdjacencyMatrix
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InternalAdjacencyMatrix.InternalBucket
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrix
AdjacencyMatrix.Bucket
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation
MultiBucketsAggregation.Bucket
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, name
-
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Modifier and Type Method Description InternalAdjacencyMatrix
create(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets)
Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.InternalAdjacencyMatrix.InternalBucket
createBucket(InternalAggregations aggregations, InternalAdjacencyMatrix.InternalBucket prototype)
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.InternalAggregation
doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
protected void
doWriteTo(StreamOutput out)
XContentBuilder
doXContentBody(XContentBuilder builder, ToXContent.Params params)
boolean
equals(java.lang.Object obj)
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 objectint
hashCode()
protected InternalAdjacencyMatrix.InternalBucket
reduceBucket(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets, InternalAggregation.ReduceContext context)
Reduce a list of same-keyed buckets (from multiple shards) to a single bucket.-
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
countInnerBucket, countInnerBucket, getProperty
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
InternalAdjacencyMatrix
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)
-
InternalAdjacencyMatrix
public InternalAdjacencyMatrix(StreamInput in) throws java.io.IOException
Read from a stream.- Throws:
java.io.IOException
-
-
Method Detail
-
doWriteTo
protected void doWriteTo(StreamOutput out) throws java.io.IOException
- Specified by:
doWriteTo
in classInternalAggregation
- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
-
create
public InternalAdjacencyMatrix create(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets)
Description copied from class:InternalMultiBucketAggregation
Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.- Specified by:
create
in classInternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
- Parameters:
buckets
- the buckets to use in the newAggregation
- Returns:
- the new
Aggregation
-
createBucket
public InternalAdjacencyMatrix.InternalBucket createBucket(InternalAggregations aggregations, InternalAdjacencyMatrix.InternalBucket prototype)
Description copied from class:InternalMultiBucketAggregation
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.- Specified by:
createBucket
in classInternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
- Parameters:
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototype- Returns:
- the new bucket
-
getBuckets
public java.util.List<InternalAdjacencyMatrix.InternalBucket> getBuckets()
Description copied from interface:AdjacencyMatrix
The buckets created by this aggregation.- Specified by:
getBuckets
in interfaceAdjacencyMatrix
- Specified by:
getBuckets
in interfaceMultiBucketsAggregation
- Specified by:
getBuckets
in classInternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
- Returns:
- The buckets of this aggregation.
-
getBucketByKey
public InternalAdjacencyMatrix.InternalBucket getBucketByKey(java.lang.String key)
- Specified by:
getBucketByKey
in interfaceAdjacencyMatrix
-
doReduce
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
- Specified by:
doReduce
in classInternalAggregation
-
reduceBucket
protected InternalAdjacencyMatrix.InternalBucket reduceBucket(java.util.List<InternalAdjacencyMatrix.InternalBucket> buckets, InternalAggregation.ReduceContext context)
Description copied from class:InternalMultiBucketAggregation
Reduce a list of same-keyed buckets (from multiple shards) to a single bucket. This requires all buckets to have the same key.- Specified by:
reduceBucket
in classInternalMultiBucketAggregation<InternalAdjacencyMatrix,InternalAdjacencyMatrix.InternalBucket>
-
doXContentBody
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBody
in classInternalAggregation
- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classInternalAggregation
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classInternalAggregation
-
-