|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.vector.bitvector.BitVectorUtil
public final class BitVectorUtil
A utility class providing methods to apply set operations like "AND", "OR",
and "XOR" on different kind of BitVectorValue
s, such as
SparseBitVectorCell
s or DenseBitVectorCell
s in a convenient
way.
Method Summary | |
---|---|
static BitVectorValue |
and(BitVectorValue bv1,
BitVectorValue bv2)
Creates a sparse bit vector cell, in case that one or both given values are sparse bit vector cells (otherwise a dense bit vector cell). |
static BitVectorValue |
or(BitVectorValue bv1,
BitVectorValue bv2)
Creates a sparse bit vector cell, in case that both given values are sparse bit vector cells (otherwise a dense bit vector cell). |
static BitVectorValue |
xor(BitVectorValue bv1,
BitVectorValue bv2)
Creates a sparse bit vector cell, in case that both given values are sparse bit vector cells (otherwise a dense bit vector cell). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BitVectorValue and(BitVectorValue bv1, BitVectorValue bv2)
SparseBitVectorCell
s or DenseBitVectorCell
s.
All other implementations need to access the bits through get/set
methods which probably performs very poorly.SparseBitVectorCellFactory.and(BitVectorValue, BitVectorValue)
,
or the dense implementation
DenseBitVectorCellFactory.and(BitVectorValue, BitVectorValue)
is called.
bv1
- the first operand to AND with the otherbv2
- the other operand to AND with the first one
public static BitVectorValue or(BitVectorValue bv1, BitVectorValue bv2)
SparseBitVectorCell
s or DenseBitVectorCell
s.
All other implementations need to access the bits through get/set
methods which probably performs very poorly.SparseBitVectorCellFactory.or(BitVectorValue, BitVectorValue)
,
or the dense implementation
DenseBitVectorCellFactory.or(BitVectorValue, BitVectorValue)
is called.
bv1
- the first operand to OR with the otherbv2
- the other operand to OR with the first one
public static BitVectorValue xor(BitVectorValue bv1, BitVectorValue bv2)
SparseBitVectorCell
s or DenseBitVectorCell
s.
All other implementations need to access the bits through get/set
methods which probably performs very poorly.SparseBitVectorCellFactory.xor(BitVectorValue, BitVectorValue)
,
or the dense implementation
DenseBitVectorCellFactory.xor(BitVectorValue, BitVectorValue)
is called.
bv1
- the first operand to XOR with the otherbv2
- the other operand to XOR with the first one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |