Package omero.gateway.model
Class TableResult
- java.lang.Object
-
- omero.gateway.model.TableResult
-
public class TableResult extends java.lang.ObjectStore the element of the py-tables.- Since:
- 3.0-Beta4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerIMAGE_COLUMN_INDEXIdentifies the index of theImagecolumn.static java.lang.IntegerROI_COLUMN_INDEXIdentifies the index of theROIcolumn.static java.lang.IntegerWELL_COLUMN_INDEXIdentifies the index of theWellcolumn.
-
Constructor Summary
Constructors Constructor Description TableResult(java.lang.Object[][] data, java.lang.String[] columns)Creates a new instance.TableResult(java.lang.Object[][] data, java.lang.String[] columns, java.lang.String[] columnsDescription)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnIndex(java.lang.Integer index)Returns the index of the column corresponding to the specified value.java.lang.Object[][]getData()Returns the data.java.lang.String[]getHeaders()Returns the name of the columns.java.lang.String[]getHeadersDescription()Returns the name of the columns.longgetTableID()Returns the id of the table.voidsetIndexes(java.util.Map<java.lang.Integer,java.lang.Integer> indexes)Sets the indexes.voidsetTableID(long tableID)Sets the id of the table.
-
-
-
Field Detail
-
ROI_COLUMN_INDEX
public static final java.lang.Integer ROI_COLUMN_INDEX
Identifies the index of theROIcolumn.
-
IMAGE_COLUMN_INDEX
public static final java.lang.Integer IMAGE_COLUMN_INDEX
Identifies the index of theImagecolumn.
-
WELL_COLUMN_INDEX
public static final java.lang.Integer WELL_COLUMN_INDEX
Identifies the index of theWellcolumn.
-
-
Constructor Detail
-
TableResult
public TableResult(java.lang.Object[][] data, java.lang.String[] columns)Creates a new instance.- Parameters:
data- The data contained in the py-table.columns- The name of the columns.
-
TableResult
public TableResult(java.lang.Object[][] data, java.lang.String[] columns, java.lang.String[] columnsDescription)Creates a new instance.- Parameters:
data- The data contained in the py-table.columns- The name of the columns.columnsDescription-
-
-
Method Detail
-
getColumnIndex
public int getColumnIndex(java.lang.Integer index)
Returns the index of the column corresponding to the specified value. One of the constants defined by this class.- Parameters:
index- One of the constants defined by this class.- Returns:
- See above.
-
setIndexes
public void setIndexes(java.util.Map<java.lang.Integer,java.lang.Integer> indexes)
Sets the indexes.- Parameters:
indexes- The value to set.
-
setTableID
public void setTableID(long tableID)
Sets the id of the table.- Parameters:
tableID- The value to set.
-
getTableID
public long getTableID()
Returns the id of the table.- Returns:
- See above.
-
getHeaders
public java.lang.String[] getHeaders()
Returns the name of the columns.- Returns:
- See above.
-
getHeadersDescription
public java.lang.String[] getHeadersDescription()
Returns the name of the columns.- Returns:
- See above.
-
getData
public java.lang.Object[][] getData()
Returns the data.- Returns:
- See above.
-
-