|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.collection.BlobSupportDataCellSet
public class BlobSupportDataCellSet
A list of DataCell objects, which special treatment for
BlobDataCell. The implementation will keep blobs in special
BlobWrapperDataCell in order to allow for a possible garbage
collection (and deserializing when a blob is accessed.)
| Constructor Summary | |
|---|---|
BlobSupportDataCellSet(Collection<? extends DataCell> cells)
Rather use one of the factory methods to create a new set. |
|
| Method Summary | |
|---|---|
boolean |
contains(DataCell cell)
Returns true if the set contains the specified cell. |
boolean |
containsBlobWrapperCells()
|
static BlobSupportDataCellSet |
create(Collection<? extends DataCell> coll)
Factory method to create a set of data cells based on a collection. |
static BlobSupportDataCellSet |
create(DataRow row,
int[] cols)
Create new set containing selected cells from a DataRow. |
static BlobSupportDataCellSet |
deserialize(DataCellDataInput input)
Static deserializer for a datacell set. |
boolean |
equals(Object obj)
|
DataType |
getElementType()
|
int |
hashCode()
|
Iterator<DataCell> |
iterator()
|
void |
serialize(DataCellDataOutput output)
Write this object to an output. |
int |
size()
Returns the number of currently stored elements. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
BlobSupportDataCellSet(Collection<? extends DataCell> cells)
cells - to be stored in the new set.| Method Detail |
|---|
public static BlobSupportDataCellSet create(Collection<? extends DataCell> coll)
If the underlying collection stems from a DataRow (as read from a
any table), consider using create(DataRow, int[]) in order to
minimize cell access.
coll - The underlying collection to take the cells from .
NullPointerException - If the argument is null or contains null
elements.
public static BlobSupportDataCellSet create(DataRow row,
int[] cols)
DataRow. Using
this method will check if the row is returned by a
BufferedDataTable and will handle blobs appropriately.
row - The underlying rowcols - The indices of the cells to store in the set
NullPointerException - If either argument is null.
IndexOutOfBoundsException - If the indices are invalid.public boolean contains(DataCell cell)
cell - the cell to check for
public Iterator<DataCell> iterator()
iterator in interface Iterable<DataCell>public boolean containsBlobWrapperCells()
public DataType getElementType()
public int size()
Set.size().
public void serialize(DataCellDataOutput output)
throws IOException
output - To write to.
IOException - If that fails.
public static BlobSupportDataCellSet deserialize(DataCellDataInput input)
throws IOException
input - To read from.
IOException - If that failsDataCellSerializer.deserialize(DataCellDataInput)public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||