Package org.opensearch.join.aggregations
Class ParentJoinAggregator.DenseCollectionStrategy
- java.lang.Object
-
- org.opensearch.join.aggregations.ParentJoinAggregator.DenseCollectionStrategy
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Releasable,ParentJoinAggregator.CollectionStrategy
- Enclosing class:
- ParentJoinAggregator
protected class ParentJoinAggregator.DenseCollectionStrategy extends java.lang.Object implements ParentJoinAggregator.CollectionStrategy
Uses a dense, bit per ordinal representation of the join field in the docs that matchParentJoinAggregator#inFilter. Its memory usage is proportional to the maximum ordinal so it is only a good choice if most docs match.
-
-
Constructor Summary
Constructors Constructor Description DenseCollectionStrategy(long maxOrd, BigArrays bigArrays)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long owningBucketOrd, int globalOrdinal)voidclose()booleanexists(long owningBucketOrd, int globalOrdinal)
-
-
-
Constructor Detail
-
DenseCollectionStrategy
public DenseCollectionStrategy(long maxOrd, BigArrays bigArrays)
-
-
Method Detail
-
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
-
-