java.lang.Object
org.elasticsearch.common.util.BitArray
All Implemented Interfaces:
java.io.Closeable
, java.lang.AutoCloseable
, Releasable
public final class BitArray
extends java.lang.Object
implements Releasable
A bit array that is implemented using a growing
LongArray
created from
BigArrays
.
The underlying long array grows lazily based on the biggest index
that needs to be set.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
void
clear (int index)
void
close ()
boolean
get (int index)
void
set (int index)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
public BitArray (
int initialSize,
BigArrays bigArrays)
Method Details
public void set (int index)
public void clear (int index)
public boolean get (int index)
public void close ()
Specified by:
close
in interface java.lang.AutoCloseable
Specified by:
close
in interface java.io.Closeable
Specified by:
close
in interface Releasable