public interface TableColumn extends JIPipeData
JIPipeData
type that represents a column.
This type allows data to be providedModifier and Type | Method and Description |
---|---|
static TableColumn |
fromList(Collection<?> rows,
String label)
Creates a new column from a collection.
|
double[] |
getDataAsDouble(int rows)
Returns as many data entries as rows
|
default List<Object> |
getDataAsObjectList()
Returns the data as list of objects
The objects are strings or numbers depending on the column type
|
String[] |
getDataAsString(int rows)
Returns as many data entries as rows
|
String |
getLabel()
Label of this column
|
double |
getRowAsDouble(int row)
Returns the data entry as string
|
default Object |
getRowAsObject(int row)
Gets the data at the specified row as object
|
String |
getRowAsString(int row)
Returns the data entry as string
|
int |
getRows()
Returns the number of rows that are existing (not generated)
|
static TableColumn |
getSlice(TableColumn input,
List<Integer> rows)
Returns a new table column that contains the selected rows in the provided order
|
static boolean |
isGeneratingTableColumn(Class<? extends JIPipeData> klass)
Returns true if the parameter is a generating table column.
|
static boolean |
isMutableTableColumn(Class<? extends JIPipeData> klass)
Returns true if the parameter is a mutable table column.
|
boolean |
isNumeric()
Returns true if this column contains double entries.
|
boolean |
isUserRemovable()
Returns if users can remove this source
|
close, createThumbnail, display, duplicate, exportData, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
static boolean isMutableTableColumn(Class<? extends JIPipeData> klass)
klass
- the classstatic boolean isGeneratingTableColumn(Class<? extends JIPipeData> klass)
klass
- the classstatic TableColumn getSlice(TableColumn input, List<Integer> rows)
input
- the input columnrows
- the rowsstatic TableColumn fromList(Collection<?> rows, String label)
DoubleArrayTableColumn
if the list only contains numbers.
Otherwise, returns a StringArrayTableColumn
.rows
- the row valeslabel
- the labelString[] getDataAsString(int rows)
rows
- the number of rowsdouble[] getDataAsDouble(int rows)
rows
- the number of rowsString getRowAsString(int row)
row
- the rowdouble getRowAsDouble(int row)
row
- the rowint getRows()
boolean isNumeric()
String
entries.boolean isUserRemovable()
String getLabel()
default Object getRowAsObject(int row)
row
- the rowCopyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.