public interface Bitmap
| Modifier and Type | Method and Description |
|---|---|
boolean |
access(long pos)
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.
|
long |
getNumBits()
Get number of total bits in the data structure
|
long |
getSizeBytes()
Estimate the size in bytes of the total data structure.
|
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 n)
Find the position where n zeros have appeared up to that position.
|
long |
select1(long n)
Find the position where n ones have appeared up to that position.
|
long |
selectNext1(long start)
Return the position of the previous 1 before position start.
|
long |
selectPrev1(long start)
Return the position of the next 1 after position start.
|
boolean access(long pos)
pos - long rank1(long pos)
pos - long rank0(long pos)
pos - long selectPrev1(long start)
start - long selectNext1(long start)
start - long select0(long n)
x - long select1(long n)
n - long getNumBits()
long countOnes()
long countZeros()
long getSizeBytes()
void save(OutputStream output, ProgressListener listener) throws IOException
output - listener - IOExceptionvoid load(InputStream input, ProgressListener listener) throws IOException
input - listener - IOExceptionString getType()
Copyright © 2018 DataWeb Research. All rights reserved.