You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
870 B
38 lines
870 B
/* |
|
* (c) the authors Licensed under the Apache License, Version 2.0. |
|
*/ |
|
|
|
package com.fr.third.bitmap.roaringbitmap; |
|
|
|
/** |
|
* Representing a general bitmap interface. |
|
*/ |
|
public interface BitmapDataProvider extends ImmutableBitmapDataProvider { |
|
/** |
|
* set the value to "true", whether it already appears or not. |
|
* |
|
* @param x integer value |
|
*/ |
|
public void add(int x); |
|
|
|
/** |
|
* If present remove the specified integers (effectively, sets its bit value to false) |
|
* |
|
* @param x integer value representing the index in a bitmap |
|
*/ |
|
public void remove(int x); |
|
|
|
/** |
|
* Return the jth value stored in this bitmap. |
|
* |
|
* @param j index of the value |
|
* @return the value |
|
*/ |
|
@Override |
|
public int select(int j); |
|
|
|
/** |
|
* Recover allocated but unused memory. |
|
*/ |
|
public void trim(); |
|
}
|
|
|