|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.DataCell
org.knime.base.data.bitvector.BitVectorCell
@Deprecated public class BitVectorCell
An implementation of a cell holding an entire vector of bits.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.base.data.bitvector.BitVectorValue |
|---|
BitVectorValue.BitVectorUtilityFactory |
| Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
|---|
DataValue.UtilityFactory |
| Field Summary | |
|---|---|
static DataType |
TYPE
Deprecated. Convenience access member for DataType.getType(BitVectorCell.class). |
| Fields inherited from interface org.knime.base.data.bitvector.BitVectorValue |
|---|
UTILITY |
| Constructor Summary | |
|---|---|
BitVectorCell(BitSet bits,
int nrOfBits)
Deprecated. Creates a new BitVectorCell based on a BitSet and a fixed length for the bits. |
|
BitVectorCell(String hex)
Deprecated. Create new BitVectorCell with a predefined value, read from a string which holds a hexadecimal representation. |
|
| Method Summary | |
|---|---|
boolean |
equalsDataCell(DataCell o)
Deprecated. Check if two BitVectorCells are equal. |
BitSet |
getBitSet()
Deprecated. |
int |
getIntValue()
Deprecated. Returns cardinality of this bit vector. |
int |
getNumBits()
Deprecated. |
static Class<? extends DataValue> |
getPreferredValueClass()
Deprecated. Preferred value class of a BitVectorCell is BitVectorValue. |
int |
hashCode()
Deprecated. This method must be implemented in order to ensure that two equal DataCell objects return the same hash code. |
static DataCell |
load(Config config)
Deprecated. Loads a new cell using the properties from the given config. |
(package private) static BitSet |
oldWay(String hex)
Deprecated. The old way of constructing the bitvector cell's bitvector. |
void |
save(Config config)
Deprecated. Saves this cell to the config. |
String |
toHexString()
Deprecated. Provide inverse routing, converting a bit vector into the corresponding hexadecimal representation. |
String |
toString()
Deprecated. Returns the String representation of this cell's value. |
| Methods inherited from class org.knime.core.data.DataCell |
|---|
equals, getType, isMissing |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DataType TYPE
DataType.getType(BitVectorCell.class).
DataType.getType(Class)| Constructor Detail |
|---|
public BitVectorCell(String hex)
hex - the hexadecimal representation of the bit vector's value
NumberFormatException - if that fails
public BitVectorCell(BitSet bits,
int nrOfBits)
bits - the bit set to be put in the cellnrOfBits - the number for the fixed length of the cell| Method Detail |
|---|
public static final Class<? extends DataValue> getPreferredValueClass()
DataCellpublic String toHexString()
toHexString in interface BitVectorValuestatic BitSet oldWay(String hex)
BitVectorCell with a predefined value, read from a string
which holds a hexadecimal representation. Resulting bit vector assumes
highest-to-lowest order, that is, the bits for the 2^3 will be left-most
in each group of 4 bits. Other than that the 4-bit groups will follow the
order of hex characters.
hex - the hexadecimal representation of the bit vector's value
public int getNumBits()
getNumBits in interface BitVectorValuepublic BitSet getBitSet()
getBitSet in interface BitVectorValueBitSetpublic String toString()
DataCell
toString in class DataCellpublic int getIntValue()
IntValue.getIntValue()public boolean equalsDataCell(DataCell o)
equalsDataCell in class DataCello - the other object to check
true if this instance and the given object are
instances of the same class and their string representations are
equalObject.equals(Object)public int hashCode()
DataCell objects return the same hash code.
hashCode in class DataCellDataCellObject.hashCode(),
DataCell.equals(java.lang.Object)public void save(Config config)
config - to write into ittoString()
public static DataCell load(Config config)
throws InvalidSettingsException
config - the config to get String from and inits this cell
InvalidSettingsException - if the value is not available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||