org.axiondb.engine.rows
Class RowView
java.lang.Object
org.axiondb.engine.rows.BaseRow
org.axiondb.engine.rows.RowView
- All Implemented Interfaces:
- Row
public class RowView
- extends BaseRow
- implements Row
A Row
wrapper for sub-query view. RowView is (typically) a subset of a Row.
e.g. Row = {ID, NAME, ADD, TEL} RowView = {ID, ADD} colIndex[]={0,2} ColumnIndex tells
which columns of Row are included in the RowView. For functions however, there is no
column in row that can be pointed to. So for functions, we'll use a placeholder where
evaluated values will be held in an evaluatedRow, that will have not null value for
evaluated columns
- Version:
- $Revision: 1.2 $ $Date: 2004/09/09 23:47:43 $
Constructor Summary |
RowView(Row row,
int id,
int[] colIndex)
|
RowView
public RowView(Row row,
int id,
int[] colIndex)
get
public Object get(int i)
- Get the value of field i . Note that the index is zero-based.
- Specified by:
get
in interface Row
set
public void set(int i,
Object val)
- Set the value of field i to val . Note that the index is
zero-based.
- Specified by:
set
in interface Row
markRowAsUpdated
public void markRowAsUpdated(int i)
size
public int size()
- Return the number of fields I contain.
- Specified by:
size
in interface Row
getSourceRow
public Row getSourceRow()