public class Bitmap375 extends Bitmap64 implements ModifiableBitmap
| Constructor and Description |
|---|
Bitmap375() |
Bitmap375(long nbits) |
Bitmap375(long nbits,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
access(long bitIndex)
Get the value of the bit at position pos
|
long |
countOnes()
Count the number of total ones in the data structure.
|
long |
countZeros()
Count the number of total zeros in the data structure.
|
void |
dump() |
long |
getRealSizeBytes() |
String |
getType()
Return the type of the data structure as defined in HDTVocabulary
|
void |
load(InputStream input,
ProgressListener listener)
Load Bitmap from an InputStream
|
long |
rank0(long pos)
Count the number of zeros up to position pos (included)
|
long |
rank1(long pos)
Count the number of ones up to position pos (included)
|
void |
save(OutputStream output,
ProgressListener listener)
Dump Bitmap into an OutputStream
|
long |
select0(long x)
Find the position where n zeros have appeared up to that position.
|
long |
select1(long x)
Find the position where n ones have appeared up to that position.
|
void |
set(long bitIndex,
boolean value) |
void |
updateIndex() |
append, ensureSize, getNumBits, getSizeBytes, getWord, lastWordNumBits, numBytes, numWords, selectNext1, selectPrev1, toString, trim, trimToSize, wordIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendgetNumBits, getSizeBytes, selectNext1, selectPrev1public Bitmap375()
public Bitmap375(long nbits)
public Bitmap375(long nbits,
InputStream in)
throws IOException
IOExceptionpublic void dump()
public void updateIndex()
public boolean access(long bitIndex)
Bitmappublic void set(long bitIndex,
boolean value)
set in interface ModifiableBitmapset in class Bitmap64public long rank1(long pos)
Bitmappublic long rank0(long pos)
Bitmappublic long select0(long x)
Bitmappublic long select1(long x)
Bitmappublic long countOnes()
Bitmappublic long countZeros()
BitmapcountZeros in interface Bitmappublic long getRealSizeBytes()
getRealSizeBytes in class Bitmap64public String getType()
Bitmappublic void save(OutputStream output, ProgressListener listener) throws IOException
Bitmapsave in interface Bitmapsave in class Bitmap64IOExceptionpublic void load(InputStream input, ProgressListener listener) throws IOException
Bitmapload in interface Bitmapload in class Bitmap64IOExceptionCopyright © 2018 DataWeb Research. All rights reserved.