public class TableColumnDataReference extends Object implements TableColumnData
ResultsTableData
Constructor and Description |
---|
TableColumnDataReference(ResultsTableData source,
int sourceColumn) |
Modifier and Type | Method and Description |
---|---|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
void |
exportData(JIPipeWriteDataStorage storage,
String name,
boolean forceName,
JIPipeProgressInfo progressInfo)
Saves the data to a folder
|
double[] |
getDataAsDouble(int rows)
Returns as many data entries as rows
|
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 double
|
String |
getRowAsString(int row)
Returns the data entry as string
|
int |
getRows()
Returns the number of rows that are existing (not generated)
|
boolean |
isNumeric()
Returns true if this column contains double entries.
|
boolean |
isUserRemovable()
Returns if users can remove this source
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromList, getDataAsObjectList, getRowAsObject, getSlice, isGeneratingTableColumn, isMutableTableColumn
close, createThumbnail, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
public TableColumnDataReference(ResultsTableData source, int sourceColumn)
public String[] getDataAsString(int rows)
TableColumnData
getDataAsString
in interface TableColumnData
rows
- the number of rowspublic double[] getDataAsDouble(int rows)
TableColumnData
getDataAsDouble
in interface TableColumnData
rows
- the number of rowspublic String getRowAsString(int row)
TableColumnData
getRowAsString
in interface TableColumnData
row
- the rowpublic double getRowAsDouble(int row)
TableColumnData
getRowAsDouble
in interface TableColumnData
row
- the rowpublic int getRows()
TableColumnData
getRows
in interface TableColumnData
public boolean isNumeric()
TableColumnData
String
entries.isNumeric
in interface TableColumnData
public boolean isUserRemovable()
TableColumnData
isUserRemovable
in interface TableColumnData
public String getLabel()
TableColumnData
getLabel
in interface TableColumnData
public void exportData(JIPipeWriteDataStorage storage, String name, boolean forceName, JIPipeProgressInfo progressInfo)
JIPipeData
exportData
in interface JIPipeData
storage
- The storage where the data should be writtenname
- A name reference that can be used to generate filename(s)forceName
- If enabled, the data is saved potentially destructively. Generated files must always contain the name parameter. This is used to collect results for humans or other algorithms.progressInfo
- the progresspublic JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
duplicate
in interface JIPipeData
progressInfo
- the progress of duplicating the dataCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.