Interface MemoryResultSet
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Serializable
- All Known Implementing Classes:
MemoryResultSetImpl
,WindowedMemoryResultSet
public interface MemoryResultSet extends Serializable, Closeable
AMemoryResultSet
resembles aResultSet
in a very simple way. It has columns and rows with values; columns have a label and a type. The values are provided per row and are of the Java equivalent of the correspondingProcessConstants.AdeptDataType
.
It is mainly used for an multiplexing event source that provides each registered sharing event source a subset of the complete result set.Note that unlike a
ResultSet
, aMemoryResultSet
is zero-based, that is, columns and rows start with 0!
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
Generated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getColumnCount()
Gets the amount of columns of this memory result set.String
getColumnLabel(int column)
Gets the label for the designated column.ProcessConstants.AdeptDataType
getColumnType(int column)
Gets the data type for the designated column.int
getRowCount()
Gets the amount of rows of this memory result set.Serializable[]
getValues(int row)
Gets the values for the designated rows.
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnCount
int getColumnCount()
Gets the amount of columns of this memory result set.- Returns:
- The amount of columns of this memory result set.
-
getRowCount
int getRowCount()
Gets the amount of rows of this memory result set.- Returns:
- The amount of rows of this memory result set.
-
getColumnLabel
String getColumnLabel(int column)
Gets the label for the designated column. The column has to be >= 0 and <getColumnCount()
.- Parameters:
column
- The column for which to get the label.- Returns:
- The label of the designated column.
-
getColumnType
ProcessConstants.AdeptDataType getColumnType(int column)
Gets the data type for the designated column. The column has to be >= 0 and <getColumnCount()
.- Parameters:
column
- The column for which to get the data type.- Returns:
- The data type of the designated column.
-
getValues
Serializable[] getValues(int row)
Gets the values for the designated rows. The row has to be >= 0 and <getRowCount()
. The values in the array are of the Java-type corresponding to theProcessConstants.AdeptDataType
of the corresponding column.null
represents a usualnull
.- Parameters:
row
- The row for which to get the values.- Returns:
- The values for the designated row.
The values will be coupled to thisMemoryResultSet
, so do not close them; clone them if required longer than thisMemoryResultSet
.
-
-