Example usage for org.apache.lucene.util BitUtil pop_array

List of usage examples for org.apache.lucene.util BitUtil pop_array

Introduction

In this page you can find the example usage for org.apache.lucene.util BitUtil pop_array.

Prototype

public static long pop_array(long[] arr, int wordOffset, int numWords) 

Source Link

Document

Returns the number of set bits in an array of longs.

Usage

From source file:org.elasticsearch.common.lucene.docset.SlicedOpenBitSet.java

License:Apache License

/**
 * @return the number of set bits
 */
public long cardinality() {
    return BitUtil.pop_array(bits, from, wlen);
}