|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl
org.apache.derby.impl.sql.execute.NoPutResultSetImpl
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet
class ProjectRestrictResultSet
Takes a table and a table filter and returns the table's rows satisfying the filter as a result set.
| Field Summary | |
|---|---|
private boolean[] |
cloneMap
Holds columns present more than once in the result set and which may be represented by a stream, since such columns need to be cloned. |
GeneratedMethod |
constantRestriction
|
boolean |
doesProjection
|
private ExecRow |
mappedResultRow
|
private GeneratedMethod |
projection
|
long |
projectionTime
|
private int[] |
projectMapping
|
private ExecRow |
projRow
|
GeneratedMethod |
restriction
|
long |
restrictionTime
|
boolean |
reuseResult
|
private boolean |
runTimeStatsOn
|
private boolean |
shortCircuitOpen
|
(package private) NoPutResultSet |
source
|
| Fields inherited from class org.apache.derby.impl.sql.execute.NoPutResultSetImpl |
|---|
checkNullCols, clonedExecRow, cncLen, resultSetNumber, targetResultSet |
| Fields inherited from class org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl |
|---|
activation, beginTime, closeTime, compactRow, constructorTime, currentRow, endExecutionTime, finished, isOpen, isTopResultSet, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, rowsFiltered, rowsSeen, startExecutionTime, subqueryTrackingArray |
| Fields inherited from interface org.apache.derby.iapi.sql.ResultSet |
|---|
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST |
| Fields inherited from interface org.apache.derby.iapi.sql.execute.NoPutResultSet |
|---|
ABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVE |
| Constructor Summary | |
|---|---|
ProjectRestrictResultSet(NoPutResultSet s,
Activation a,
GeneratedMethod r,
GeneratedMethod p,
int resultSetNumber,
GeneratedMethod cr,
int mapRefItem,
int cloneMapItem,
boolean reuseResult,
boolean doesProjection,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost)
|
|
| Method Summary | |
|---|---|
void |
close()
If the result set has been opened, close the open scan. |
ExecRow |
doBaseRowProjection(ExecRow sourceRow)
Do the projection against the sourceRow. |
private ExecRow |
doProjection(ExecRow sourceRow)
Do the projection against the source row. |
void |
finish()
Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open(). |
int[] |
getBaseProjectMapping()
Get projection mapping array. |
ExecRow |
getCurrentRow()
Gets last row returned. |
ExecRow |
getNextRowCore()
Return the requested values computed from the next row (if any) for which the restriction evaluates to true. |
RowLocation |
getRowLocation()
Gets information from its source. |
long |
getTimeSpent(int type)
Return the total amount of time spent in this ResultSet |
boolean |
isForUpdate()
Is this ResultSet or it's source result set for update |
void |
markRowAsDeleted()
Marks the resultSet's currentRow as deleted after a delete has been issued by either by using positioned delete or JDBC's deleteRow method. |
void |
openCore()
open a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values... |
void |
reopenCore()
reopen a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values... |
void |
updateRow(ExecRow row,
RowChanger rowChanger)
Updates the resultSet's current row with it's new values after an update has been issued either using positioned update or JDBC's udpateRow method. |
| Methods inherited from class org.apache.derby.impl.sql.execute.NoPutResultSetImpl |
|---|
clearCurrentRow, clearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, needsRowLocation, needsToClone, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.sql.ResultSet |
|---|
addWarning, checkRowPosition, cleanUp, clearCurrentRow, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow |
| Field Detail |
|---|
public long restrictionTime
public long projectionTime
final NoPutResultSet source
public GeneratedMethod constantRestriction
public GeneratedMethod restriction
public boolean doesProjection
private GeneratedMethod projection
private int[] projectMapping
private boolean[] cloneMap
private boolean runTimeStatsOn
private ExecRow mappedResultRow
public boolean reuseResult
private boolean shortCircuitOpen
private ExecRow projRow
| Constructor Detail |
|---|
ProjectRestrictResultSet(NoPutResultSet s,
Activation a,
GeneratedMethod r,
GeneratedMethod p,
int resultSetNumber,
GeneratedMethod cr,
int mapRefItem,
int cloneMapItem,
boolean reuseResult,
boolean doesProjection,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost)
throws StandardException
StandardException| Method Detail |
|---|
public void openCore()
throws StandardException
openCore in interface NoPutResultSetStandardException - thrown if cursor finished.
public void reopenCore()
throws StandardException
reopenCore in interface NoPutResultSetreopenCore in class BasicNoPutResultSetImplStandardException - thrown if cursor finished.NoPutResultSet.openCore()
public ExecRow getNextRowCore()
throws StandardException
restriction and projection parameters are evaluated for each row.
getNextRowCore in interface NoPutResultSetgetNextRowCore in class BasicNoPutResultSetImplStandardException - thrown on failure.
StandardException - ResultSetNotOpen thrown if not yet open.NoPutResultSet.getNextRowCore()public long getTimeSpent(int type)
getTimeSpent in interface ResultSettype - CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.
public void close()
throws StandardException
close in interface ResultSetclose in class NoPutResultSetImplStandardException - thrown on error
public void finish()
throws StandardException
ResultSet
finish in interface ResultSetfinish in class BasicNoPutResultSetImplStandardException - on error
public RowLocation getRowLocation()
throws StandardException
getRowLocation in interface CursorResultSetStandardException - thrown on failure.CursorResultSet
public ExecRow getCurrentRow()
throws StandardException
getCurrentRow in interface CursorResultSetStandardException - thrown on failure.CursorResultSet
private ExecRow doProjection(ExecRow sourceRow)
throws StandardException
sourceRow - The source row.
StandardException - thrown on failure.
public ExecRow doBaseRowProjection(ExecRow sourceRow)
throws StandardException
sourceRow - row to be projected
StandardException - thrown on failure.public int[] getBaseProjectMapping()
public boolean isForUpdate()
isForUpdate in interface NoPutResultSetisForUpdate in class NoPutResultSetImpl
public void updateRow(ExecRow row,
RowChanger rowChanger)
throws StandardException
NoPutResultSet
updateRow in interface NoPutResultSetupdateRow in class NoPutResultSetImplrow - new values for the currentRowrowChanger - holds information about row: what columns of it is to
be used for updating, and what underlying base table column each
such column corresponds to.
StandardException - thrown on failure.NoPutResultSet.updateRow(org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.execute.RowChanger)
public void markRowAsDeleted()
throws StandardException
NoPutResultSet
markRowAsDeleted in interface NoPutResultSetmarkRowAsDeleted in class NoPutResultSetImplStandardException - thrown on failure.NoPutResultSet.markRowAsDeleted()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||