public abstract class MappeableContainer extends Object implements Iterable<Short>, Cloneable, Externalizable
| Constructor and Description |
|---|
MappeableContainer() |
| Modifier and Type | Method and Description |
|---|---|
abstract MappeableContainer |
add(short x)
Add a short to the container.
|
abstract MappeableContainer |
and(MappeableArrayContainer x)
Computes the bitwise AND of this container with another (intersection).
|
abstract MappeableContainer |
and(MappeableBitmapContainer x)
Computes the bitwise AND of this container with another (intersection).
|
MappeableContainer |
and(MappeableContainer x)
Computes the bitwise AND of this container with another (intersection).
|
abstract MappeableContainer |
andNot(MappeableArrayContainer x)
Computes the bitwise ANDNOT of this container with another (difference).
|
abstract MappeableContainer |
andNot(MappeableBitmapContainer x)
Computes the bitwise ANDNOT of this container with another (difference).
|
MappeableContainer |
andNot(MappeableContainer x)
Computes the bitwise ANDNOT of this container with another (difference).
|
abstract void |
clear()
Empties the container
|
abstract MappeableContainer |
clone() |
abstract boolean |
contains(short x)
Checks whether the contain contains the provided value
|
abstract void |
fillLeastSignificant16bits(int[] x,
int i,
int mask)
Fill the least significant 16 bits of the integer array, starting at
index index, with the short values from this container.
|
protected abstract int |
getArraySizeInBytes()
Size of the underlying array
|
abstract int |
getCardinality()
Computes the distinct number of short values in the container.
|
abstract ShortIterator |
getShortIterator()
Iterator to visit the short values in the container
|
abstract int |
getSizeInBytes()
Computes an estimate of the memory usage of this container.
|
abstract MappeableContainer |
iand(MappeableArrayContainer x)
Computes the in-place bitwise AND of this container with another
(intersection).
|
abstract MappeableContainer |
iand(MappeableBitmapContainer x)
Computes the in-place bitwise AND of this container with another
(intersection).
|
MappeableContainer |
iand(MappeableContainer x)
Computes the in-place bitwise AND of this container with another
(intersection).
|
abstract MappeableContainer |
iandNot(MappeableArrayContainer x)
Computes the in-place bitwise ANDNOT of this container with another
(difference).
|
abstract MappeableContainer |
iandNot(MappeableBitmapContainer x)
Computes the in-place bitwise ANDNOT of this container with another
(difference).
|
MappeableContainer |
iandNot(MappeableContainer x)
Computes the in-place bitwise ANDNOT of this container with another
(difference).
|
abstract MappeableContainer |
inot(int rangeStart,
int rangeEnd)
Computes the in-place bitwise NOT of this container (complement).
|
abstract MappeableContainer |
ior(MappeableArrayContainer x)
Computes the in-place bitwise OR of this container with another (union).
|
abstract MappeableContainer |
ior(MappeableBitmapContainer x)
Computes the in-place bitwise OR of this container with another (union).
|
MappeableContainer |
ior(MappeableContainer x)
Computes the in-place bitwise OR of this container with another (union).
|
abstract MappeableContainer |
ixor(MappeableArrayContainer x)
Computes the in-place bitwise OR of this container with another (union).
|
abstract MappeableContainer |
ixor(MappeableBitmapContainer x)
Computes the in-place bitwise OR of this container with another (union).
|
MappeableContainer |
ixor(MappeableContainer x)
Computes the in-place bitwise OR of this container with another (union).
|
protected MappeableContainer |
lazyIOR(MappeableContainer x) |
protected MappeableContainer |
lazyOR(MappeableContainer x) |
abstract MappeableContainer |
limit(int maxcardinality)
Create a new MappeableContainer containing at most maxcardinality integers.
|
abstract MappeableContainer |
not(int rangeStart,
int rangeEnd)
Computes the bitwise NOT of this container (complement).
|
abstract MappeableContainer |
or(MappeableArrayContainer x)
Computes the bitwise OR of this container with another (union).
|
abstract MappeableContainer |
or(MappeableBitmapContainer x)
Computes the bitwise OR of this container with another (union).
|
MappeableContainer |
or(MappeableContainer x)
Computes the bitwise OR of this container with another (union).
|
static MappeableContainer |
rangeOfOnes(int start,
int last)
Create a container initialized with a range of consecutive values
|
abstract int |
rank(short lowbits)
Rank returns the number of integers that are smaller or equal to x (Rank(infinity) would be GetCardinality()).
|
abstract MappeableContainer |
remove(short x)
Remove the short from this container.
|
abstract short |
select(int j)
Return the jth value
|
abstract void |
trim()
If possible, recover wasted memory.
|
protected abstract void |
writeArray(DataOutput out)
Write just the underlying array.
|
abstract MappeableContainer |
xor(MappeableArrayContainer x)
Computes the bitwise OR of this container with another (union).
|
abstract MappeableContainer |
xor(MappeableBitmapContainer x)
Computes the bitwise OR of this container with another (union).
|
MappeableContainer |
xor(MappeableContainer x)
Computes the bitwise OR of this container with another (union).
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, iterator, spliteratorreadExternal, writeExternalpublic static MappeableContainer rangeOfOnes(int start, int last)
start - first indexlast - last index (range in inclusive)public abstract MappeableContainer add(short x)
x - short to be addedpublic abstract MappeableContainer and(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer and(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer and(MappeableContainer x)
x - other containerpublic abstract MappeableContainer andNot(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer andNot(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer andNot(MappeableContainer x)
x - other containerpublic abstract void clear()
public abstract MappeableContainer clone()
public abstract boolean contains(short x)
x - value to checkpublic abstract void fillLeastSignificant16bits(int[] x,
int i,
int mask)
x - provided arrayi - starting indexmask - indicates most significant bitsprotected abstract int getArraySizeInBytes()
public abstract int getCardinality()
public abstract ShortIterator getShortIterator()
public abstract int getSizeInBytes()
public abstract MappeableContainer iand(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer iand(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer iand(MappeableContainer x)
x - other containerpublic abstract MappeableContainer iandNot(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer iandNot(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer iandNot(MappeableContainer x)
x - other containerpublic abstract MappeableContainer inot(int rangeStart, int rangeEnd)
rangeStart - beginning of range (inclusive); 0 is beginning of this
container.rangeEnd - ending of range (exclusive)public abstract MappeableContainer ior(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer ior(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer ior(MappeableContainer x)
x - other containerpublic abstract MappeableContainer ixor(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer ixor(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer ixor(MappeableContainer x)
x - other containerprotected MappeableContainer lazyOR(MappeableContainer x)
protected MappeableContainer lazyIOR(MappeableContainer x)
public abstract MappeableContainer not(int rangeStart, int rangeEnd)
rangeStart - beginning of range (inclusive); 0 is beginning of this
container.rangeEnd - ending of range (exclusive)public abstract MappeableContainer or(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer or(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer or(MappeableContainer x)
x - other containerpublic abstract MappeableContainer remove(short x)
x - to be removedpublic abstract void trim()
protected abstract void writeArray(DataOutput out) throws IOException
out - output streamIOException - in case of failurepublic abstract MappeableContainer xor(MappeableArrayContainer x)
x - other containerpublic abstract MappeableContainer xor(MappeableBitmapContainer x)
x - other containerpublic MappeableContainer xor(MappeableContainer x)
x - other parameterpublic abstract int rank(short lowbits)
lowbits - upper limitpublic abstract short select(int j)
j - index of the valuepublic abstract MappeableContainer limit(int maxcardinality)
maxcardinality - maximal cardinalityCopyright © 2014. All Rights Reserved.