org.axiondb.engine.rows

Class RowView

public class RowView extends BaseRow implements Row

A Rowwrapper 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 $

Author: Ahimanikya Satapathy

Constructor Summary
RowView(Row row, int id, int[] colIndex)
Method Summary
Objectget(int i)
Get the value of field i .
voidset(int i, Object val)
Set the value of field i to val .
intsize()
Return the number of fields I contain.

Constructor Detail

RowView

public RowView(Row row, int id, int[] colIndex)

Method Detail

get

public Object get(int i)
Get the value of field i . Note that the index is zero-based.

set

public void set(int i, Object val)
Set the value of field i to val . Note that the index is zero-based.

size

public final int size()
Return the number of fields I contain.