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.4 $ $Date: 2005/12/22 09:02:30 $
Fields inherited from class org.axiondb.engine.rows.BaseRow |
_hash |
Constructor Summary |
RowView(Row row,
int id,
int[] colIndex)
|
Method Summary |
Object |
get(int i)
Get the value of field i . |
void |
set(int i,
Object val)
Set the value of field i to val . |
int |
size()
Return the number of fields I contain. |
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
size
public final int size()
- Return the number of fields I contain.
- Specified by:
size
in interface Row