Class BytesKeyedBucketOrds

java.lang.Object
org.elasticsearch.search.aggregations.bucket.terms.BytesKeyedBucketOrds
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, Releasable

public abstract class BytesKeyedBucketOrds
extends java.lang.Object
implements Releasable
Maps BytesRef bucket keys to bucket ordinals.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static interface  BytesKeyedBucketOrds.BucketOrdsEnum
    An iterator for buckets inside a particular owningBucketOrd.
  • Method Summary

    Modifier and Type Method Description
    abstract long add​(long owningBucketOrd, org.apache.lucene.util.BytesRef value)
    Add the owningBucketOrd, value pair.
    abstract long bucketsInOrd​(long owningBucketOrd)
    Count the buckets in owningBucketOrd.
    static BytesKeyedBucketOrds build​(BigArrays bigArrays, CardinalityUpperBound cardinality)
    abstract BytesKeyedBucketOrds.BucketOrdsEnum ordsEnum​(long owningBucketOrd)
    Build an iterator for buckets inside owningBucketOrd in order of increasing ord.
    abstract long size()
    The number of collected buckets.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.lease.Releasable

    close