|
||||||||||
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.core.data.container.BlobWrapperDataCell
public final class BlobWrapperDataCell
Wrapper for BlobDataCell
. We explicitly wrap those cells in this
package to delay the access to the latest time possible (when someone
calls getCell() on the row). If such a cell has been added to an table
(by calling e.g.
addRowToTable in a DataContainer
,
the framework will write the underlying blob to a dedicated file and
internally link to this blob file. The blob object itself can be garbage
collected and will silently re-instantiated if accessed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
---|
DataValue.UtilityFactory |
Field Summary |
---|
Fields inherited from interface org.knime.core.data.DataValue |
---|
UTILITY |
Constructor Summary | |
---|---|
BlobWrapperDataCell(BlobDataCell cell)
Create a new wrapper cell for a blob object. |
|
BlobWrapperDataCell(Buffer b,
BlobDataCell.BlobAddress ba,
CellClassInfo cl)
Keeps references. |
Method Summary | |
---|---|
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here. |
(package private) BlobDataCell.BlobAddress |
getAddress()
|
Class<? extends BlobDataCell> |
getBlobClass()
|
(package private) CellClassInfo |
getBlobClassInfo()
|
(package private) DataType |
getBlobDataType()
|
(package private) Buffer |
getBuffer()
|
DataCell |
getCell()
Fetches the content of the blob cell. |
int |
hashCode()
This method must be implemented in order to ensure that two equal DataCell objects return the same hash code. |
(package private) void |
setAddressAndBuffer(BlobDataCell.BlobAddress address,
Buffer buffer)
Framework method to set buffer and address. |
String |
toString()
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 |
Constructor Detail |
---|
BlobWrapperDataCell(Buffer b, BlobDataCell.BlobAddress ba, CellClassInfo cl)
b
- The buffer that owns the cell.ba
- Its address.cl
- The class information of the blob.public BlobWrapperDataCell(BlobDataCell cell)
cell
- The cell to wrap.Method Detail |
---|
public DataCell getCell()
void setAddressAndBuffer(BlobDataCell.BlobAddress address, Buffer buffer)
address
- Address to set.buffer
- Owner buffer to set.BlobDataCell.BlobAddress getAddress()
public Class<? extends BlobDataCell> getBlobClass()
CellClassInfo getBlobClassInfo()
DataType getBlobDataType()
Buffer getBuffer()
protected boolean equalsDataCell(DataCell dc)
null
or a missing value,
to be of the same class like this.
equalsDataCell
in class DataCell
dc
- the cell to compare this to
true
if this is equal to the argument,
false
if notpublic int hashCode()
DataCell
objects return the same hash code.
hashCode
in class DataCell
DataCell
Object.hashCode()
,
DataCell.equals(java.lang.Object)
public String toString()
toString
in class DataCell
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |