public class JIPipeDataTable extends Object implements JIPipeData, TableModel
Constructor and Description |
---|
JIPipeDataTable() |
JIPipeDataTable(Class<? extends JIPipeData> acceptedDataType) |
JIPipeDataTable(JIPipeDataTable other,
boolean shallow,
JIPipeProgressInfo progressInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<? extends JIPipeData> klass)
Returns true if the slot can carry the provided data.
|
boolean |
accepts(JIPipeData data)
Returns true if the slot can carry the provided data.
|
boolean |
acceptsTrivially(Class<? extends JIPipeData> klass)
Returns true if the slot can carry the provided data.
|
boolean |
acceptsTrivially(JIPipeData data)
Returns true if the slot can carry the provided data.
|
void |
addAnnotationToAllData(JIPipeTextAnnotation annotation,
boolean overwrite)
Deprecated.
use addTextAnnotationToAllData()
|
void |
addData(JIPipeDataItemStore virtualData,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
JIPipeDataContext context,
JIPipeProgressInfo progressInfo)
Adds data as virtual data reference
|
void |
addData(JIPipeDataItemStore virtualData,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
JIPipeProgressInfo progressInfo)
Deprecated.
use the overload with the context
|
void |
addData(JIPipeDataItemStore virtualData,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
List<JIPipeDataAnnotation> dataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeDataContext context,
JIPipeProgressInfo progressInfo)
Adds data as virtual data reference
|
void |
addData(JIPipeDataItemStore virtualData,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
List<JIPipeDataAnnotation> dataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeProgressInfo progressInfo)
Deprecated.
use the overload with the context
|
void |
addData(JIPipeData value,
JIPipeDataContext context,
JIPipeProgressInfo progressInfo)
Adds a data row
|
void |
addData(JIPipeData value,
JIPipeProgressInfo progressInfo)
Deprecated.
use the overload with the context
|
void |
addData(JIPipeData value,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
JIPipeDataContext context,
JIPipeProgressInfo progressInfo)
Adds a data row
|
void |
addData(JIPipeData value,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
JIPipeProgressInfo progressInfo)
Deprecated.
use the overload with the context
|
void |
addData(JIPipeData data,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
List<JIPipeDataAnnotation> dataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeDataContext context,
JIPipeProgressInfo progressInfo)
Adds data as virtual data reference
|
void |
addData(JIPipeData data,
List<JIPipeTextAnnotation> annotations,
JIPipeTextAnnotationMergeMode mergeStrategy,
List<JIPipeDataAnnotation> dataAnnotations,
JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy,
JIPipeProgressInfo progressInfo)
Deprecated.
use the overload with the context
|
void |
addData(JIPipeDataTable sourceSlot,
JIPipeProgressInfo progressInfo)
Deprecated.
use addDataFromSlot
|
void |
addDataFromSlot(JIPipeDataTable sourceSlot,
JIPipeProgressInfo progressInfo)
Copies the source slot into this slot.
|
void |
addDataFromTable(JIPipeDataTable table,
JIPipeProgressInfo progressInfo)
Merges the data from the source table into the current one
|
void |
addFromTable(JIPipeDataTable table,
JIPipeProgressInfo progressInfo)
Deprecated.
use addDataFromTable instead
|
void |
addTableModelListener(TableModelListener l) |
void |
addTextAnnotationToAllData(JIPipeTextAnnotation annotation,
boolean overwrite)
Adds an annotation to all existing data
|
void |
clear(boolean force,
JIPipeProgressInfo progressInfo)
Removes all rows from this table
|
void |
clearData(boolean force,
JIPipeProgressInfo progressInfo)
Removes all rows from this table
|
void |
convert(Class<? extends JIPipeData> dataClass,
JIPipeProgressInfo progressInfo)
Converts this data table in-place and sets the accepted data type
|
JIPipeThumbnailData |
createThumbnail(int width,
int height,
JIPipeProgressInfo progressInfo)
This function generates a thumbnail for this data
Can return null
|
void |
destroyData()
Closes all data and data annotations and replaces their values in the table by null.
|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
void |
exportData(JIPipeWriteDataStorage storage,
JIPipeProgressInfo saveProgress)
Saves the data contained in this slot into the storage path.
|
void |
exportData(JIPipeWriteDataStorage storage,
String name,
boolean forceName,
JIPipeProgressInfo progressInfo)
Saves the data to a folder
|
protected void |
exportDataRow_(JIPipeWriteDataStorage storage,
int row,
List<Dimension> previewSizes,
JIPipeProgressInfo rowProgress)
NOT THREAD-SAFE
|
JIPipeDataTable |
filter(BiPredicate<JIPipeDataTable,Integer> predicate)
Creates a new instance that contains the filtered items.
|
void |
fireChangedEvent(TableModelEvent event)
Fires a
TableModelEvent to all listeners |
Class<? extends JIPipeData> |
getAcceptedDataType() |
JIPipeDataInfo |
getAcceptedDataTypeInfo()
Return the info about the slot's data type
|
<T extends JIPipeData> |
getAllData(Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets all the data stored in a specific row.
|
List<JIPipeDataAnnotation> |
getAllDataAnnotations()
Gets the list of all data annotations
|
List<JIPipeTextAnnotation> |
getAllTextAnnotations()
Gets the list of all text annotations
|
List<String> |
getAnnotationColumns()
Deprecated.
use getTextAnnotationColumns()
|
Map<String,JIPipeTextAnnotation> |
getAnnotationMap(int row)
Deprecated.
Use getTextAnnotationMap instead
|
Class<?> |
getColumnClass(int columnIndex)
The column class.
|
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
<T extends JIPipeData> |
getData(int row,
Class<T> dataClass,
JIPipeProgressInfo progressInfo)
Gets the data stored in a specific row.
|
JIPipeDataAnnotation |
getDataAnnotation(int row,
int col)
Gets a data annotation
|
JIPipeDataAnnotation |
getDataAnnotation(int row,
String column)
Gets a data annotation
|
protected List<JIPipeDataItemStore> |
getDataAnnotationColumnArray_(String columnName)
Gets the annotation data column
DOES NOT ENSURE that the output size is equal to getRowCount()
NOT THREAD-SAFE, REQUIRES A READ LOCK!
|
List<String> |
getDataAnnotationColumnNames() |
JIPipeDataItemStore |
getDataAnnotationItemStore(int row,
String column)
Gets a data annotation as
JIPipeDataItemStore |
protected Map<String,JIPipeDataItemStore> |
getDataAnnotationItemStoreMap_(int row)
Returns a map of all data annotations as
JIPipeDataItemStore
NOT THREAD-SAFE. |
List<JIPipeDataAnnotation> |
getDataAnnotations(Collection<Integer> rows)
Gets the list of all data annotations in the specified row
|
List<JIPipeDataAnnotation> |
getDataAnnotations(int row)
Gets the list of all data annotations in the specified row
|
Class<? extends JIPipeData> |
getDataClass(int row)
Gets the true type of the data at given row
|
JIPipeDataContext |
getDataContext(int row)
Gets the context of the data in the row
|
List<JIPipeDataContext> |
getDataContexts() |
JIPipeDataInfo |
getDataInfo(int row)
Returns Information about the true data type that is stored at given row
|
JIPipeDataItemStore |
getDataItemStore(int row)
Gets the virtual data container at given row
|
String |
getDisplayName() |
String |
getLocation(String key)
Returns info about the location of this data table.
|
String |
getLocation(String key,
String defaultValue)
Returns info about the location of this data table.
|
protected List<JIPipeDataItemStore> |
getOrCreateDataAnnotationColumnArray_(String columnName)
Gets the annotation data column or creates it
Ensures that the output size is equal to getRowCount()
NOT THREAD-SAFE, REQUIRES A WRITE LOCK!
|
protected List<JIPipeTextAnnotation> |
getOrCreateTextAnnotationColumnArray_(String columnName)
Gets the annotation column or creates it
Ensures that the output size is equal to getRowCount()
NOT THREAD-SAFE, REQUIRES A WRITE LOCK!
|
protected int |
getRowCount_()
NOT THREAD-SAFE
|
int |
getRowCount() |
JIPipeTextAnnotation |
getTextAnnotation(int row,
int column)
Gets an annotation at a specific index
|
JIPipeTextAnnotation |
getTextAnnotation(int row,
String column)
Gets an annotation at a specific column
|
protected List<JIPipeTextAnnotation> |
getTextAnnotationColumnArray_(String columnName)
Gets the annotation column or creates it
DOES NOT ENSURE that the output size is equal to getRowCount()
NOT THREAD-SAFE, REQUIRES A WRITE LOCK!
|
List<String> |
getTextAnnotationColumnNames() |
Map<String,JIPipeTextAnnotation> |
getTextAnnotationMap(int row)
Returns annotations of a row as map
|
JIPipeTextAnnotation |
getTextAnnotationOr(int row,
String name,
JIPipeTextAnnotation orElse)
Returns the annotation of specified type or the alternative value.
|
List<JIPipeTextAnnotation> |
getTextAnnotations(Collection<Integer> rows)
Gets the list of annotations for specific data rows
|
List<JIPipeTextAnnotation> |
getTextAnnotations(int row)
Gets the list of annotations for a specific data row
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the data.
|
JIPipeDataItemStore |
getVirtualData(int row)
Deprecated.
use getDataItemStore
|
JIPipeDataItemStore |
getVirtualDataAnnotation(int row,
String column)
Deprecated.
use getDataAnnotationItemStore
|
Map<String,JIPipeDataItemStore> |
getVirtualDataAnnotationMap(int row)
Deprecated.
use getDataAnnotationItemStoreMap
|
static JIPipeDataTable |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo)
Imports this data from the path
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isEmpty() |
Component |
preview(int width,
int height)
This function generates a preview component for usage within the GUI
Can return null
|
void |
removeAllAnnotationsFromData(String column)
Removes an annotation column from the data
|
void |
removeTableModelListener(TableModelListener l) |
protected JIPipeWriteDataStorage |
saveDataAnnotationRow_(JIPipeWriteDataStorage storage,
JIPipeProgressInfo saveProgress,
int row,
List<Dimension> previewSizes,
JIPipeProgressInfo rowProgress,
JIPipeDataAnnotation dataAnnotation,
Map<String,String> dataAnnotationColumnNameMapping)
NOT THREAD-SAFE
|
void |
setAcceptedDataType(Class<? extends JIPipeData> slotDataType)
Sets the accepted slot type
Please note that this method can cause issues when running the graph
|
void |
setData(int row,
JIPipeData data)
Sets the data of a specific row
|
void |
setDataAnnotation(int row,
JIPipeDataAnnotation annotation)
Sets a data annotation
|
void |
setDataAnnotation(int row,
String column,
JIPipeData data)
Sets a data annotation
|
protected void |
setDataAnnotationItemStore_(int row,
String column,
JIPipeDataItemStore virtualData)
Sets a virtual data annotation
|
void |
setDataAnnotationItemStore(int row,
String column,
JIPipeDataItemStore virtualData)
Sets a virtual data annotation
|
void |
setDataContext(int row,
JIPipeDataContext context)
Sets the context of data in given row
|
void |
setDataItemStore(int row,
JIPipeDataItemStore virtualData)
Sets the data of a specific row
|
void |
setTextAnnotation(int row,
JIPipeTextAnnotation annotation)
Sets a text annotation
|
void |
setTextAnnotation(int row,
String column,
String value)
Sets a text annotation
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
void |
setVirtualData(int row,
JIPipeDataItemStore virtualData)
Deprecated.
use setDataItemStore
|
void |
setVirtualDataAnnotation(int row,
String column,
JIPipeDataItemStore virtualData)
Deprecated.
use setDataAnnotationItemStore
|
JIPipeDataTable |
slice(Collection<Integer> rows)
Creates a new instance that contains only the selected rows.
|
AnnotationTableData |
toAnnotationTable(boolean withDataAsString)
Converts the slot into an annotation table
|
String |
toString() |
JIPipeDataTable |
toWeakCopy()
Creates a copy of this data table that contains only
JIPipeWeakDataReferenceData data and data annotations
(If any data is already weak, it is left as-is) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, toDetailedString
public JIPipeDataTable()
public JIPipeDataTable(Class<? extends JIPipeData> acceptedDataType)
public JIPipeDataTable(JIPipeDataTable other, boolean shallow, JIPipeProgressInfo progressInfo)
public static JIPipeDataTable importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
storage
- the storagepublic JIPipeDataTable toWeakCopy()
JIPipeWeakDataReferenceData
data and data annotations
(If any data is already weak, it is left as-is)public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
public void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
protected int getRowCount_()
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
public Class<?> getColumnClass(int columnIndex)
JIPipeDataItemStore
for the first column.
For data annotation columns, returns JIPipeDataAnnotation
.
For text annotation columns, returns JIPipeTextAnnotation
.getColumnClass
in interface TableModel
columnIndex
- the column. 0 is the data column. (0, #data columns + 1) are data columns. (#data columns, #data columns + #text columns + 1) are text columns.public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
JIPipeDataItemStore
For data annotation columns, returns the JIPipeDataAnnotation
For text annotation columns, returns the JIPipeTextAnnotation
getValueAt
in interface TableModel
rowIndex
- the rowcolumnIndex
- the column. 0 is the data column. (0, #data columns + 1) are data columns. (#data columns, #data columns + #text columns + 1) are text columns.public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
public void fireChangedEvent(TableModelEvent event)
TableModelEvent
to all listenersevent
- the eventpublic void clearData(boolean force, JIPipeProgressInfo progressInfo)
force
- if true, close all data storesprogressInfo
- the progress infopublic void clear(boolean force, JIPipeProgressInfo progressInfo)
force
- if true, force closing the data storageprogressInfo
- the progress infopublic List<String> getTextAnnotationColumnNames()
@Deprecated public List<String> getAnnotationColumns()
public List<String> getDataAnnotationColumnNames()
public Class<? extends JIPipeData> getAcceptedDataType()
public void setAcceptedDataType(Class<? extends JIPipeData> slotDataType)
slotDataType
- the new data typepublic JIPipeDataInfo getAcceptedDataTypeInfo()
public boolean accepts(JIPipeData data)
data
- Datapublic boolean accepts(Class<? extends JIPipeData> klass)
klass
- Data classpublic boolean acceptsTrivially(JIPipeData data)
data
- Datapublic boolean acceptsTrivially(Class<? extends JIPipeData> klass)
klass
- Data class@Deprecated public JIPipeDataItemStore getVirtualData(int row)
row
- the rowpublic JIPipeDataItemStore getDataItemStore(int row)
row
- the rowpublic JIPipeDataContext getDataContext(int row)
row
- the rowpublic <T extends JIPipeData> T getData(int row, Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typerow
- The rowdataClass
- the class to returnprogressInfo
- progress for data loadingpublic <T extends JIPipeData> List<T> getAllData(Class<T> dataClass, JIPipeProgressInfo progressInfo)
T
- Data typedataClass
- the class to returnprogressInfo
- progress for data loading@Deprecated public JIPipeDataItemStore getVirtualDataAnnotation(int row, String column)
JIPipeDataItemStore
row
- the rowcolumn
- the data annotation columnpublic JIPipeDataItemStore getDataAnnotationItemStore(int row, String column)
JIPipeDataItemStore
row
- the rowcolumn
- the data annotation column@Deprecated public void setVirtualDataAnnotation(int row, String column, JIPipeDataItemStore virtualData)
row
- the rowcolumn
- the data annotation columnvirtualData
- the data. can be null.public void setDataAnnotationItemStore(int row, String column, JIPipeDataItemStore virtualData)
row
- the rowcolumn
- the data annotation columnvirtualData
- the data. can be null.protected void setDataAnnotationItemStore_(int row, String column, JIPipeDataItemStore virtualData)
row
- the rowcolumn
- the data annotation columnvirtualData
- the data. can be null.public void setData(int row, JIPipeData data)
row
- the rowdata
- the datapublic void setDataContext(int row, JIPipeDataContext context)
row
- the rowcontext
- the new context. if null, a new context is created.@Deprecated public void setVirtualData(int row, JIPipeDataItemStore virtualData)
row
- the rowvirtualData
- the datapublic void setDataItemStore(int row, JIPipeDataItemStore virtualData)
row
- the rowvirtualData
- the datapublic void setTextAnnotation(int row, String column, String value)
row
- the rowcolumn
- the columnvalue
- the valuepublic void setTextAnnotation(int row, JIPipeTextAnnotation annotation)
row
- the rowannotation
- the annotationpublic void setDataAnnotation(int row, JIPipeDataAnnotation annotation)
row
- the rowannotation
- the annotationpublic void setDataAnnotation(int row, String column, JIPipeData data)
row
- the rowcolumn
- the columndata
- the data. Can be nullpublic Map<String,JIPipeTextAnnotation> getTextAnnotationMap(int row)
row
- the row@Deprecated public Map<String,JIPipeTextAnnotation> getAnnotationMap(int row)
row
- the row@Deprecated public Map<String,JIPipeDataItemStore> getVirtualDataAnnotationMap(int row)
JIPipeDataItemStore
row
- the rowprotected Map<String,JIPipeDataItemStore> getDataAnnotationItemStoreMap_(int row)
JIPipeDataItemStore
NOT THREAD-SAFE. REQUIRES READ LOCKrow
- the rowpublic List<JIPipeDataAnnotation> getDataAnnotations(int row)
row
- the rowpublic List<JIPipeDataAnnotation> getAllDataAnnotations()
public List<JIPipeDataAnnotation> getDataAnnotations(Collection<Integer> rows)
rows
- the rowspublic JIPipeDataAnnotation getDataAnnotation(int row, String column)
row
- the rowcolumn
- the data annotation columnpublic List<JIPipeTextAnnotation> getTextAnnotations(int row)
row
- The rowpublic List<JIPipeTextAnnotation> getAllTextAnnotations()
public List<JIPipeTextAnnotation> getTextAnnotations(Collection<Integer> rows)
rows
- The set of rowspublic JIPipeTextAnnotation getTextAnnotationOr(int row, String name, JIPipeTextAnnotation orElse)
row
- data rowname
- annotation nameorElse
- alternative valueprotected List<JIPipeTextAnnotation> getOrCreateTextAnnotationColumnArray_(String columnName)
columnName
- Annotation typeprotected List<JIPipeDataItemStore> getOrCreateDataAnnotationColumnArray_(String columnName)
columnName
- Annotation typeprotected List<JIPipeTextAnnotation> getTextAnnotationColumnArray_(String columnName)
columnName
- Annotation typeprotected List<JIPipeDataItemStore> getDataAnnotationColumnArray_(String columnName)
columnName
- Annotation typepublic List<JIPipeDataContext> getDataContexts()
public void addData(JIPipeData value, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, JIPipeDataContext context, JIPipeProgressInfo progressInfo)
value
- The dataannotations
- Optional annotationsprogressInfo
- progress for data storage@Deprecated public void addData(JIPipeData value, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, JIPipeProgressInfo progressInfo)
value
- The dataannotations
- Optional annotationsprogressInfo
- progress for data storagepublic void addTextAnnotationToAllData(JIPipeTextAnnotation annotation, boolean overwrite)
annotation
- The annotation instanceoverwrite
- If false, existing annotations of the same type are not overwritten@Deprecated public void addAnnotationToAllData(JIPipeTextAnnotation annotation, boolean overwrite)
annotation
- The annotation instanceoverwrite
- If false, existing annotations of the same type are not overwrittenpublic void removeAllAnnotationsFromData(String column)
column
- Annotation type@Deprecated public void addData(JIPipeData value, JIPipeProgressInfo progressInfo)
value
- DataprogressInfo
- progress for data storagepublic void addData(JIPipeData value, JIPipeDataContext context, JIPipeProgressInfo progressInfo)
value
- DataprogressInfo
- progress for data storage@Deprecated public void addFromTable(JIPipeDataTable table, JIPipeProgressInfo progressInfo)
table
- the source tableprogressInfo
- the progresspublic void addDataFromTable(JIPipeDataTable table, JIPipeProgressInfo progressInfo)
table
- the source tableprogressInfo
- the progresspublic String getDisplayName()
public void exportData(JIPipeWriteDataStorage storage, JIPipeProgressInfo saveProgress)
storage
- storage that contains the datasaveProgress
- save progressprotected JIPipeWriteDataStorage saveDataAnnotationRow_(JIPipeWriteDataStorage storage, JIPipeProgressInfo saveProgress, int row, List<Dimension> previewSizes, JIPipeProgressInfo rowProgress, JIPipeDataAnnotation dataAnnotation, Map<String,String> dataAnnotationColumnNameMapping)
storage
- the storagesaveProgress
- the progressrow
- the rowpreviewSizes
- the preview sizesrowProgress
- the progressdataAnnotation
- the data annotationdataAnnotationColumnNameMapping
- the column name mappingprotected void exportDataRow_(JIPipeWriteDataStorage storage, int row, List<Dimension> previewSizes, JIPipeProgressInfo rowProgress)
storage
- the storagerow
- the rowpreviewSizes
- preview sizesrowProgress
- the progress@Deprecated public void addData(JIPipeDataTable sourceSlot, JIPipeProgressInfo progressInfo)
sourceSlot
- The other slotprogressInfo
- the progresspublic void addDataFromSlot(JIPipeDataTable sourceSlot, JIPipeProgressInfo progressInfo)
sourceSlot
- The other slotprogressInfo
- the progresspublic void addData(JIPipeDataItemStore virtualData, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, JIPipeDataContext context, JIPipeProgressInfo progressInfo)
virtualData
- the virtual dataannotations
- the annotationsmergeStrategy
- merge strategyprogressInfo
- the progress info@Deprecated public void addData(JIPipeDataItemStore virtualData, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, JIPipeProgressInfo progressInfo)
virtualData
- the virtual dataannotations
- the annotationsmergeStrategy
- merge strategyprogressInfo
- the progress infopublic JIPipeTextAnnotation getTextAnnotation(int row, int column)
row
- the data rowcolumn
- the columnpublic JIPipeTextAnnotation getTextAnnotation(int row, String column)
row
- the data rowcolumn
- the columnpublic void convert(Class<? extends JIPipeData> dataClass, JIPipeProgressInfo progressInfo)
dataClass
- the target data typepublic void destroyData()
JIPipeDataItemStore
items that might be present in
other tables might be destroyed.
Use clearData() as alternativepublic boolean isEmpty()
public JIPipeDataTable slice(Collection<Integer> rows)
rows
- the rowspublic JIPipeDataTable filter(BiPredicate<JIPipeDataTable,Integer> predicate)
predicate
- the predicate (the current table, row index)public AnnotationTableData toAnnotationTable(boolean withDataAsString)
withDataAsString
- if the string representation should be includedpublic void addData(JIPipeDataItemStore virtualData, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> dataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeDataContext context, JIPipeProgressInfo progressInfo)
virtualData
- the virtual dataannotations
- the annotationsmergeStrategy
- merge strategyprogressInfo
- the progress info@Deprecated public void addData(JIPipeDataItemStore virtualData, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> dataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeProgressInfo progressInfo)
virtualData
- the virtual dataannotations
- the annotationsmergeStrategy
- merge strategyprogressInfo
- the progress infopublic void addData(JIPipeData data, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> dataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeDataContext context, JIPipeProgressInfo progressInfo)
data
- the dataannotations
- the annotationsmergeStrategy
- merge strategyprogressInfo
- the progress info@Deprecated public void addData(JIPipeData data, List<JIPipeTextAnnotation> annotations, JIPipeTextAnnotationMergeMode mergeStrategy, List<JIPipeDataAnnotation> dataAnnotations, JIPipeDataAnnotationMergeMode dataAnnotationMergeStrategy, JIPipeProgressInfo progressInfo)
data
- the dataannotations
- the annotationsmergeStrategy
- merge strategyprogressInfo
- the progress infopublic Class<? extends JIPipeData> getDataClass(int row)
row
- the rowpublic 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 datapublic Component preview(int width, int height)
JIPipeData
preview
in interface JIPipeData
width
- the target widthheight
- the target heightpublic JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
createThumbnail
in interface JIPipeData
width
- the widthheight
- the heightprogressInfo
- the progress infopublic String getLocation(String key)
key
- the keypublic String getLocation(String key, String defaultValue)
key
- the keydefaultValue
- returned if no info about the key existspublic JIPipeDataAnnotation getDataAnnotation(int row, int col)
row
- the rowcol
- the data annotation columnpublic JIPipeDataInfo getDataInfo(int row)
row
- the rowCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.