Class ParentJoinAggregator.SparseCollectionStrategy
java.lang.Object
org.elasticsearch.join.aggregations.ParentJoinAggregator.SparseCollectionStrategy
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Releasable,ParentJoinAggregator.CollectionStrategy
- Enclosing class:
- ParentJoinAggregator
protected class ParentJoinAggregator.SparseCollectionStrategy extends java.lang.Object implements ParentJoinAggregator.CollectionStrategy
Uses a hashed representation of whether of the join field in the docs
that match
ParentJoinAggregator#inFilter. Its memory usage is
proportional to the number of matching global ordinals so it is used
when only some docs might match.-
Constructor Summary
Constructors Constructor Description SparseCollectionStrategy(BigArrays bigArrays, CardinalityUpperBound cardinality) -
Method Summary
-
Constructor Details
-
Method Details
-
add
public void add(long owningBucketOrd, int globalOrdinal)- Specified by:
addin interfaceParentJoinAggregator.CollectionStrategy
-
exists
public boolean exists(long owningBucketOrd, int globalOrdinal)- Specified by:
existsin interfaceParentJoinAggregator.CollectionStrategy
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceReleasable
-