| Modifier and Type | Field and Description |
|---|---|
| private final DataValueDescriptor[] | cachedDestinations
This array contains data value descriptors that can be used (and reused) by normalizeRow() to hold the normalized column values. |
| private DataTypeDescriptor[] | |
| private ExecRow | |
| private int | |
| private ResultDescription | |
| public NoPutResultSet | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | NormalizeResultSet(NoPutResultSet
The NoPutResultSet from which to get rows
to be normalized source, Activation The activation for this execution activation, int The resultSetNumber resultSetNumber, int The integer for the ResultDescription erdNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, boolean forUpdate)Constructor for a NormalizeResultSet |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. If the result set has been opened, close the open scan. |
| public static int | computeStartColumn(boolean
True if we are executing an UPDATE statement isUpdate, ResultDescription Metadata describing a result row
desc)Compute the start column for an update/insert. |
| private DataTypeDescriptor[] | |
| private DataValueDescriptor | Returns: a data value descriptor of the correct type for the columnthe column number (1-based) col)Get a cached data value descriptor that can receive the normalized value of the specified column. |
| public ExecRow | Returns: the last row returned.Implements org. Gets information from last getNextRow call. |
| private DataTypeDescriptor | Returns: a data type descriptor for the columnthe column number (1-based) col)Get a data type descriptor that describes the desired type for the specified column. |
| public ExecRow | getNextRowCore()
Implements abstract org. Implements org. Return the requested values computed from the next row (if any) for which the restriction evaluates to true. |
| public RowLocation | Returns: the row location of the current cursor row.Implements org. Gets information from its source. |
| public long | Returns: long The total amount of time spent (in milliseconds).CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below. type)Implements org. Return the total amount of time spent in this ResultSet |
| public void | markRowAsDeleted()
Overrides org. Implements org. Marks the resultSet's currentRow as deleted after a delete has been issued by either by using positioned delete or JDBC's deleteRow method. |
| public static DataValueDescriptor | normalizeColumn(DataTypeDescriptor
Data type to coerce to dtd, ExecRow row holding the source column sourceRow, int position of column in row sourceColumnPosition, DataValueDescriptor where to stuff the coerced value resultCol, ResultDescription Additional metadata for error reporting if necessary desc)Normalize a column. |
| private ExecRow | |
| public void | openCore()
Implements org. open a scan on the source. |
| public void | reopenCore()
Overrides org. Implements org. reopen a scan on the table. |
| public void | updateRow(ExecRow
new values for the currentRow row, RowChanger 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. rowChanger)Overrides org. Implements org. 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. |
| cachedDestinations | back to summary |
|---|---|
| private final DataValueDescriptor[] cachedDestinations This array contains data value descriptors that can be used (and reused) by normalizeRow() to hold the normalized column values. | |
| desiredTypes | back to summary |
|---|---|
| private DataTypeDescriptor[] desiredTypes | |
| normalizedRow | back to summary |
|---|---|
| private ExecRow normalizedRow | |
| numCols | back to summary |
|---|---|
| private int numCols | |
| resultDescription | back to summary |
|---|---|
| private ResultDescription resultDescription Hides org. | |
| source | back to summary |
|---|---|
| public NoPutResultSet source | |
| startCol | back to summary |
|---|---|
| private int startCol | |
| NormalizeResultSet | back to summary |
|---|---|
| public NormalizeResultSet(NoPutResultSet source, Activation activation, int resultSetNumber, int erdNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, boolean forUpdate) throws StandardException Constructor for a NormalizeResultSet
| |
| close | back to summary |
|---|---|
| public void close() throws StandardException Overrides org. Implements org. If the result set has been opened, close the open scan.
| |
| computeStartColumn | back to summary |
|---|---|
| public static int computeStartColumn(boolean isUpdate, ResultDescription desc) Compute the start column for an update/insert.
| |
| fetchResultTypes | back to summary |
|---|---|
| private DataTypeDescriptor[] fetchResultTypes(ResultDescription desc) Fetch the result datatypes out of the activation. | |
| getCachedDestination | back to summary |
|---|---|
| private DataValueDescriptor getCachedDestination(int col) throws StandardException Get a cached data value descriptor that can receive the normalized value of the specified column.
| |
| getCurrentRow | back to summary |
|---|---|
| public ExecRow getCurrentRow() Implements org. Gets information from last getNextRow call.
| |
| getDesiredType | back to summary |
|---|---|
| private DataTypeDescriptor getDesiredType(int col) Get a data type descriptor that describes the desired type for the specified column.
| |
| getNextRowCore | back to summary |
|---|---|
| public ExecRow getNextRowCore() throws StandardException Implements abstract org. Implements org. Doc from org. Return the requested values computed from the next row (if any) for which the restriction evaluates to true. restriction and projection parameters are evaluated for each row.
| |
| getRowLocation | back to summary |
|---|---|
| public RowLocation getRowLocation() throws StandardException Implements org. Gets information from its source. We might want to have this take a CursorResultSet in its constructor some day, instead of doing a cast here?
| |
| getTimeSpent | back to summary |
|---|---|
| public long getTimeSpent(int type) Implements org. Return the total amount of time spent in this ResultSet
| |
| markRowAsDeleted | back to summary |
|---|---|
| public void markRowAsDeleted() throws StandardException Overrides org. Implements org. Doc from org. Marks the resultSet's currentRow as deleted after a delete has been issued by either by using positioned delete or JDBC's deleteRow method.
| |
| normalizeColumn | back to summary |
|---|---|
| public static DataValueDescriptor normalizeColumn(DataTypeDescriptor dtd, ExecRow sourceRow, int sourceColumnPosition, DataValueDescriptor resultCol, ResultDescription desc) throws StandardException Normalize a column. For now, this means calling constructors through the type services to normalize a type to itself. For example, if you're putting a char(30) value into a char(15) column, it calls a SQLChar constructor with the char(30) value, and the constructor truncates the value and makes sure that no non-blank characters are truncated.
| |
| normalizeRow | back to summary |
|---|---|
| private ExecRow normalizeRow(ExecRow sourceRow) throws StandardException Normalize a row.
| |
| openCore | back to summary |
|---|---|
| public void openCore() throws StandardException Implements org. open a scan on the source. scan parameters are evaluated at each open, so there is probably some way of altering their values...
| |
| reopenCore | back to summary |
|---|---|
| public void reopenCore() throws StandardException Overrides org. Implements org. reopen a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values...
| |
| updateRow | back to summary |
|---|---|
| public void updateRow(ExecRow row, RowChanger rowChanger) throws StandardException Overrides org. Implements org. Doc from org. 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.
| |