xxl.relational
Class NestedLoopsGrouper

java.lang.Object
  |
  +--xxl.relational.AbstractResultSet
        |
        +--xxl.relational.Grouper
              |
              +--xxl.relational.NestedLoopsGrouper

public class NestedLoopsGrouper
extends Grouper


Field Summary
protected  java.lang.Object[] aggregateValues
           
protected  Tuple byColumnsValues
           
protected  boolean emptyResultSet
           
protected  java.util.Map map
           
protected  java.util.Iterator mapIterator
           
protected  int maxMapSize
           
protected  BufferedResultSet r
           
protected  boolean wasNull
           
 
Fields inherited from class xxl.relational.Grouper
aggregates, AVG, byColumns, COUNT, COUNT_ALL, length, MAX, metaData, MIN, onColumns, projectedResultSet, projLength, resultSet, SUM
 
Constructor Summary
NestedLoopsGrouper(int[] byColumns, Function[] aggregates, int[] onColumns, Bag bag, int maxTuplesInMemory, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(int[] byColumns, Function[] aggregates, int[] onColumns, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(int[] byColumns, Function[] aggregates, java.lang.String[] onColumns, Bag bag, int maxTuplesInMemory, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(int[] byColumns, Function[] aggregates, java.lang.String[] onColumns, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(java.lang.String[] byColumns, Function[] aggregates, int[] onColumns, Bag bag, int maxTuplesInMemory, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(java.lang.String[] byColumns, Function[] aggregates, int[] onColumns, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(java.lang.String[] byColumns, Function[] aggregates, java.lang.String[] onColumns, Bag bag, int maxTuplesInMemory, java.sql.ResultSet resultSet)
           
NestedLoopsGrouper(java.lang.String[] byColumns, Function[] aggregates, java.lang.String[] onColumns, java.sql.ResultSet resultSet)
           
 
Method Summary
 void close()
           
protected  void createNestedLoopsGrouper(int maxTuplesInMemory)
           
 byte[] getBytes(int columnIndex)
           
 java.lang.Object getObject(int columnIndex)
           
 boolean next()
           
 boolean wasNull()
           
 
Methods inherited from class xxl.relational.Grouper
createGrouper, findColumn, getMetaData
 
Methods inherited from class xxl.relational.AbstractResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getColumnCount, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

r

protected BufferedResultSet r

map

protected java.util.Map map

maxMapSize

protected int maxMapSize

mapIterator

protected java.util.Iterator mapIterator

byColumnsValues

protected Tuple byColumnsValues

aggregateValues

protected java.lang.Object[] aggregateValues

emptyResultSet

protected boolean emptyResultSet

wasNull

protected boolean wasNull
Constructor Detail

NestedLoopsGrouper

public NestedLoopsGrouper(int[] byColumns,
                          Function[] aggregates,
                          int[] onColumns,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(int[] byColumns,
                          Function[] aggregates,
                          int[] onColumns,
                          Bag bag,
                          int maxTuplesInMemory,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(java.lang.String[] byColumns,
                          Function[] aggregates,
                          int[] onColumns,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(java.lang.String[] byColumns,
                          Function[] aggregates,
                          int[] onColumns,
                          Bag bag,
                          int maxTuplesInMemory,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(int[] byColumns,
                          Function[] aggregates,
                          java.lang.String[] onColumns,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(int[] byColumns,
                          Function[] aggregates,
                          java.lang.String[] onColumns,
                          Bag bag,
                          int maxTuplesInMemory,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(java.lang.String[] byColumns,
                          Function[] aggregates,
                          java.lang.String[] onColumns,
                          java.sql.ResultSet resultSet)

NestedLoopsGrouper

public NestedLoopsGrouper(java.lang.String[] byColumns,
                          Function[] aggregates,
                          java.lang.String[] onColumns,
                          Bag bag,
                          int maxTuplesInMemory,
                          java.sql.ResultSet resultSet)
Method Detail

createNestedLoopsGrouper

protected void createNestedLoopsGrouper(int maxTuplesInMemory)

next

public boolean next()
             throws java.sql.SQLException
Overrides:
next in class Grouper

getObject

public java.lang.Object getObject(int columnIndex)
                           throws java.sql.SQLException
Overrides:
getObject in class Grouper

getBytes

public byte[] getBytes(int columnIndex)
                throws java.sql.SQLException
Overrides:
getBytes in class Grouper

wasNull

public boolean wasNull()
                throws java.sql.SQLException
Overrides:
wasNull in class Grouper

close

public void close()
           throws java.sql.SQLException
Overrides:
close in class Grouper