Package omero.gateway.model
Class TableResult
- java.lang.Object
-
- omero.gateway.model.TableResult
-
public class TableResult extends java.lang.Object
Store the element of the py-tables.- Since:
- 3.0-Beta4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Integer
IMAGE_COLUMN_INDEX
Identifies the index of theImage
column.static java.lang.Integer
ROI_COLUMN_INDEX
Identifies the index of theROI
column.static java.lang.Integer
WELL_COLUMN_INDEX
Identifies the index of theWell
column.
-
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 int
getColumnIndex(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.long
getTableID()
Returns the id of the table.void
setIndexes(java.util.Map<java.lang.Integer,java.lang.Integer> indexes)
Sets the indexes.void
setTableID(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 theROI
column.
-
IMAGE_COLUMN_INDEX
public static final java.lang.Integer IMAGE_COLUMN_INDEX
Identifies the index of theImage
column.
-
WELL_COLUMN_INDEX
public static final java.lang.Integer WELL_COLUMN_INDEX
Identifies the index of theWell
column.
-
-
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.
-
-