|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.collection.BlobSupportDataCellList
public class BlobSupportDataCellList
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 | |
---|---|
protected |
BlobSupportDataCellList(Collection<? extends DataCell> coll)
Creates new instance based on a collection of data cells. |
Method Summary | |
---|---|
boolean |
containsBlobWrapperCells()
|
static BlobSupportDataCellList |
create(Collection<? extends DataCell> coll)
Factory method to create a list based on a collection. |
static BlobSupportDataCellList |
create(DataRow row,
int[] cols)
Create new list based on selected cell from a DataRow . |
static BlobSupportDataCellList |
deserialize(DataCellDataInput input)
Static deserializer for a list. |
boolean |
equals(Object obj)
|
DataCell |
get(int index)
Returns the element at the specified position of the list. |
DataType |
getElementType()
|
DataCell |
getWithBlobSupport(int index)
Returns the element at the specified position of the list. |
int |
hashCode()
|
Iterator<DataCell> |
iterator()
|
void |
serialize(DataCellDataOutput output)
Write this object to an output. |
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BlobSupportDataCellList(Collection<? extends DataCell> coll)
coll
- The underlying collection (will be copied).
BlobDataCell
in this collection will be handled with
care.Method Detail |
---|
public final boolean containsBlobWrapperCells()
public DataCell get(int index)
index
- the index of the element to return
IndexOutOfBoundsException
- if the index is larger than the list is
longpublic DataCell getWithBlobSupport(int index)
index
- the index of the element to return
IndexOutOfBoundsException
- if the index is larger than the list is
longpublic Iterator<DataCell> iterator()
iterator
in interface Iterable<DataCell>
public DataType getElementType()
public int size()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void serialize(DataCellDataOutput output) throws IOException
output
- To write to.
IOException
- If that fails.public static BlobSupportDataCellList deserialize(DataCellDataInput input) throws IOException
input
- To read from.
IOException
- If that failsDataCellSerializer.deserialize(DataCellDataInput)
public static BlobSupportDataCellList create(Collection<? extends DataCell> coll)
If the underlying collection stems from a DataRow
(as read from a
any table), consider to use create(DataRow, int[])
in order to
minimize cell access.
coll
- The underlying collection.
NullPointerException
- If the argument is null or contains null
values.public static BlobSupportDataCellList 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 interest.
NullPointerException
- If either argument is null.
IndexOutOfBoundsException
- If the indices are invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |