mondrian.rolap.agg
Class SegmentLoader.RowList

java.lang.Object
  extended by mondrian.rolap.agg.SegmentLoader.RowList
Enclosing class:
SegmentLoader

protected static class SegmentLoader.RowList
extends Object

Collection of rows, each with a set of columns of type Object, double, or int. Native types are not boxed.


Nested Class Summary
(package private) static class SegmentLoader.RowList.Column
           
(package private) static class SegmentLoader.RowList.DoubleColumn
           
static interface SegmentLoader.RowList.Handler
           
(package private) static class SegmentLoader.RowList.IntColumn
           
(package private) static class SegmentLoader.RowList.LongColumn
           
(package private) static class SegmentLoader.RowList.NativeColumn
           
(package private) static class SegmentLoader.RowList.ObjectColumn
           
 
Constructor Summary
SegmentLoader.RowList(List<SqlStatement.Type> types)
          Creates a RowList.
SegmentLoader.RowList(List<SqlStatement.Type> types, int capacity)
          Creates a RowList with a specified initial capacity.
 
Method Summary
(package private)  void createRow()
           
 void createRow(ResultSet resultSet)
           
 void first()
          Moves to before the first row.
 double getDouble(int columnIndex)
           
 int getInt(int columnIndex)
           
 Object getObject(int columnIndex)
          Returns the object in the given column of the current row.
 List<SqlStatement.Type> getTypes()
           
 boolean isNull(int columnIndex)
           
 void last()
          Moves to after the last row.
 boolean next()
          Moves forward one row, or returns false if at the last row.
 boolean previous()
          Moves backward one row, or returns false if at the first row.
(package private)  void setDouble(int column, double value)
           
(package private)  void setInt(int column, int value)
           
(package private)  void setLong(int column, long value)
           
 void setNull(int columnIndex, boolean b)
           
(package private)  void setObject(int column, Object value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentLoader.RowList

SegmentLoader.RowList(List<SqlStatement.Type> types)
Creates a RowList.

Parameters:
types - Column types

SegmentLoader.RowList

SegmentLoader.RowList(List<SqlStatement.Type> types,
                      int capacity)
Creates a RowList with a specified initial capacity.

Parameters:
types - Column types
capacity - Initial capacity
Method Detail

createRow

void createRow()

setObject

void setObject(int column,
               Object value)

setDouble

void setDouble(int column,
               double value)

setInt

void setInt(int column,
            int value)

setLong

void setLong(int column,
             long value)

size

public int size()

createRow

public void createRow(ResultSet resultSet)
               throws SQLException
Throws:
SQLException

getTypes

public List<SqlStatement.Type> getTypes()

first

public void first()
Moves to before the first row.


last

public void last()
Moves to after the last row.


next

public boolean next()
Moves forward one row, or returns false if at the last row.

Returns:
whether moved forward

previous

public boolean previous()
Moves backward one row, or returns false if at the first row.

Returns:
whether moved backward

getObject

public Object getObject(int columnIndex)
Returns the object in the given column of the current row.

Parameters:
columnIndex - Column index
Returns:
Value of the column

getInt

public int getInt(int columnIndex)

getDouble

public double getDouble(int columnIndex)

isNull

public boolean isNull(int columnIndex)

setNull

public void setNull(int columnIndex,
                    boolean b)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads