Class ParentJoinAggregator.SparseCollectionStrategy

java.lang.Object
org.elasticsearch.join.aggregations.ParentJoinAggregator.SparseCollectionStrategy
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.elasticsearch.common.lease.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​(org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality)  
  • Method Summary

    Modifier and Type Method Description
    void add​(long owningBucketOrd, int globalOrdinal)  
    void close()  
    boolean exists​(long owningBucketOrd, int globalOrdinal)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SparseCollectionStrategy

      public SparseCollectionStrategy​(org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality)
  • Method Details

    • add

      public void add​(long owningBucketOrd, int globalOrdinal)
      Specified by:
      add in interface ParentJoinAggregator.CollectionStrategy
    • exists

      public boolean exists​(long owningBucketOrd, int globalOrdinal)
      Specified by:
      exists in interface ParentJoinAggregator.CollectionStrategy
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in interface org.elasticsearch.common.lease.Releasable