Java org.apache.lucene.util BitUtil fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util BitUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util BitUtil.

The text is from its open source code.

Subclass

org.apache.lucene.util.BitUtil has subclasses.
Click this link to see all its subclasses.

Method

longdeinterleave(long b)
Extract just the even-bits value as a long from the bit-interleaved value
longflipFlop(final long b)
flip flops odd with even bits
longinterleave(int even, int odd)
Interleaves the first 32 bits of each long value Adapted from: http://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN
intnextHighestPowerOfTwo(int v)
returns the next highest power of two, or the current value if it's already a power of two or zero
longnextHighestPowerOfTwo(long v)
returns the next highest power of two, or the current value if it's already a power of two or zero
longpop_array(long[] arr, int wordOffset, int numWords)
Returns the number of set bits in an array of longs.
intzigZagDecode(int i)
Decode an int previously encoded with #zigZagEncode(int) .
longzigZagDecode(long l)
Decode a long previously encoded with #zigZagEncode(long) .
intzigZagEncode(int i)
Same as #zigZagEncode(long) but on integers.
longzigZagEncode(long l)
Zig-zag encode the provided long.