|
||||||||||
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.collection.SetCell
public class SetCell
Default implementation of a CollectionDataValue
, whereas the
underlying data structure is a set (i.e. there won't be duplicates stored in
the collection).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.data.collection.CollectionDataValue |
---|
CollectionDataValue.CollectionUtilityFactory |
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
---|
DataValue.UtilityFactory |
Field Summary |
---|
Fields inherited from interface org.knime.core.data.collection.CollectionDataValue |
---|
UTILITY |
Constructor Summary | |
---|---|
protected |
SetCell(BlobSupportDataCellSet cellSet)
Rather use one of the factory methods. |
Method Summary | |
---|---|
boolean |
contains(DataCell cell)
Returns true if the collection contains the specified cell. |
boolean |
containsBlobWrapperCells()
Get whether the collection contains special BlobWrapperDataCell
(framework use). |
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here. |
static DataCellSerializer<SetCell> |
getCellSerializer()
Get serializer as required by DataCell . |
static DataType |
getCollectionType(DataType elementType)
Convenience method to determine the type of collection. |
DataType |
getElementType()
Get the common super type of all elements in this collection. |
protected BlobSupportDataCellSet |
getSet()
|
int |
hashCode()
This method must be implemented in order to ensure that two equal DataCell objects return the same hash code. |
Iterator<DataCell> |
iterator()
|
int |
size()
Get the number of elements in this collection. |
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 |
---|
protected SetCell(BlobSupportDataCellSet cellSet)
cellSet
- the set that will be taken over.CollectionCellFactory.createSetCell(Collection)
,
CollectionCellFactory.createSetCell(DataRow, int[])
Method Detail |
---|
public static final DataType getCollectionType(DataType elementType)
DataType.getType(SetCell.class, elementType)
.
elementType
- The type of the elements
public static final DataCellSerializer<SetCell> getCellSerializer()
DataCell
.
public boolean containsBlobWrapperCells()
BlobWrapperDataCell
(framework use). This method gives a hint to the framwork (specifically
to the classes DataContainer
and BufferedDataContainer
) whether they should handle the cell implementing
this interface with care with respect to contained BlobDataCell
.
This method should return true
only if
CollectionDataValue.iterator()
implements
BlobSupportDataCellIterator
(which allows the framework to access
the BlobWrapperDataCell
without touching the contained
BlobDataCell
(which is an expensive operation) and BlobWrapperDataCell
.Implementation note: This method is really only a helper for the framework. The same information can be retrieved by accessing the iterator. This can be an expensive and unnecessary operation, however.
containsBlobWrapperCells
in interface CollectionDataValue
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 DataType getElementType()
getElementType
in interface CollectionDataValue
public int hashCode()
DataCell
objects return the same hash code.
hashCode
in class DataCell
DataCell
Object.hashCode()
,
DataCell.equals(java.lang.Object)
public Iterator<DataCell> iterator()
iterator
in interface Iterable<DataCell>
iterator
in interface CollectionDataValue
public boolean contains(DataCell cell)
contains
in interface SetDataValue
cell
- the cell to check for
DataCell.equals(Object o)
public int size()
size
in interface CollectionDataValue
public String toString()
toString
in class DataCell
protected BlobSupportDataCellSet getSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |