Class ParentJoinAggregator.DenseCollectionStrategy
java.lang.Object
org.elasticsearch.join.aggregations.ParentJoinAggregator.DenseCollectionStrategy
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.elasticsearch.common.lease.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 match
ParentJoinAggregator#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, org.elasticsearch.common.util.BigArrays bigArrays)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DenseCollectionStrategy
public DenseCollectionStrategy(long maxOrd, org.elasticsearch.common.util.BigArrays bigArrays)
-
-
Method Details
-
add
public void add(long owningBucketOrd, int globalOrdinal)- Specified by:
add
in interfaceParentJoinAggregator.CollectionStrategy
-
exists
public boolean exists(long owningBucketOrd, int globalOrdinal)- Specified by:
exists
in interfaceParentJoinAggregator.CollectionStrategy
-
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceorg.elasticsearch.common.lease.Releasable
-