|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.BitKey.AbstractBitKey mondrian.rolap.BitKey.Big
public static class BitKey.Big
Implementation of BitKey
with more than 64 bits. Similar to
BitSet
, but does not require dynamic resizing.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface mondrian.rolap.BitKey |
---|
BitKey.AbstractBitKey, BitKey.Big, BitKey.Factory, BitKey.Mid128, BitKey.Small |
Field Summary |
---|
Fields inherited from class mondrian.rolap.BitKey.AbstractBitKey |
---|
ChunkBitCount, Mask |
Fields inherited from interface mondrian.rolap.BitKey |
---|
bitPositionTable |
Method Summary | |
---|---|
BitKey |
and(BitKey bitKey)
Returns the boolean AND of this bitkey and the given bitkey. |
BitKey |
andNot(BitKey bitKey)
Returns a BitKey containing all of the bits in this
BitSet whose corresponding
bit is NOT set in the specified BitSet . |
void |
clear()
Sets all of the bits in this BitKey to false . |
void |
clear(int pos)
Sets the bit specified by the index to false . |
int |
compareTo(BitKey bitKey)
|
BitKey |
copy()
Returns a copy of this BitKey. |
BitKey |
emptyCopy()
Returns an empty BitKey of the same type. |
boolean |
equals(Object o)
|
boolean |
get(int pos)
Returns the value of the bit with the specified index. |
int |
hashCode()
|
boolean |
intersects(BitKey bitKey)
Returns whether this BitKey has any bits in common with a given BitKey. |
boolean |
isEmpty()
Returns true if this BitKey contains no bits that are set
to true . |
boolean |
isSuperSetOf(BitKey bitKey)
Is every bit set in the parameter bitKey also set in
this . |
Iterator<Integer> |
iterator()
An Iterator over the bit positions. |
BitKey |
or(BitKey bitKey)
Or the parameter BitKey with this . |
void |
set(int pos)
Sets the bit at the specified index to true . |
BitSet |
toBitSet()
Returns a BitSet with the same contents as this BitKey. |
String |
toString()
|
Methods inherited from class mondrian.rolap.BitKey.AbstractBitKey |
---|
bit, chunkCount, chunkPos, copyFromByte, copyFromLong, createException, set |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void set(int pos)
BitKey
true
.
public boolean get(int pos)
BitKey
true
if the bit with the index bitIndex
is currently set in this BitKey
; otherwise, the result
is false
.
public void clear(int pos)
BitKey
false
.
public void clear()
BitKey
false
.
public BitKey or(BitKey bitKey)
BitKey
BitKey
with this
.
public BitKey and(BitKey bitKey)
BitKey
public BitKey andNot(BitKey bitKey)
BitKey
BitKey
containing all of the bits in this
BitSet
whose corresponding
bit is NOT set in the specified BitSet
.
public boolean isSuperSetOf(BitKey bitKey)
BitKey
bitKey
also set in
this
.
If one switches this
with the parameter bitKey
one gets the equivalent of isSubSetOf.
public boolean intersects(BitKey bitKey)
BitKey
public BitSet toBitSet()
BitKey
BitSet
with the same contents as this BitKey.
public Iterator<Integer> iterator()
BitKey
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public BitKey copy()
BitKey
public BitKey emptyCopy()
BitKey
BitKey.copy()
followed by BitKey.clear()
.
public boolean isEmpty()
BitKey
BitKey
contains no bits that are set
to true
.
public int compareTo(BitKey bitKey)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |