org.axiondb.engine.rows
Class RowView

java.lang.Object
  extended by org.axiondb.engine.rows.BaseRow
      extended by org.axiondb.engine.rows.RowView
All Implemented Interfaces:
Row

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 $

Field Summary
 
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.
 
Methods inherited from class org.axiondb.engine.rows.BaseRow
equals, getIdentifier, hashCode, setIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.Row
equals, getIdentifier, hashCode, setIdentifier
 

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.

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