Class IndexValueRow
java.lang.Object
org.apache.derby.impl.sql.execute.IndexValueRow
- All Implemented Interfaces:
ExecIndexRow, ExecRow, Row
Mapper of ValueRow into ExecIndexRow.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareNullsOrdered(int columnPosition) Return true if orderedNulls was called on this ExecIndexRow for the given column position.cloneColumn(int columnPosition) Get a clone of a DataValueDescriptor from an ExecRow.voidexecRowToExecIndexRow(ExecRow valueRow) Turn the ExecRow into an ExecIndexRow.getClone()Clone the Row and its contents.getClone(FormatableBitSet clonedCols) Clone the Row.getColumn(int position) Get a DataValueDescriptor in a Row by ordinal position (1-based).Get a new row with the same columns type as this one, containing nulls.voidGet a new DataValueDescriptor[]Get the array form of the row that Access expects.Get a clone of the array form of the row that Access expects.intnColumns()voidorderedNulls(int columnPosition) These two methods are a sort of a hack.voidReset all columns in the row array to null values.voidsetColumn(int position, DataValueDescriptor col) Set a DataValueDescriptor in a Row by ordinal position (1-based).voidsetRowArray(DataValueDescriptor[] value) Set the array of objectstoString()
-
Field Details
-
valueRow
-
-
Constructor Details
-
IndexValueRow
IndexValueRow(ExecRow valueRow)
-
-
Method Details
-
toString
-
getRowArray
Get the array form of the row that Access expects.- Specified by:
getRowArrayin interfaceExecRow- See Also:
-
setRowArray
Description copied from interface:ExecRowSet the array of objects- Specified by:
setRowArrayin interfaceExecRow- See Also:
-
getRowArrayClone
Get a clone of the array form of the row that Access expects.- Specified by:
getRowArrayClonein interfaceExecRow- See Also:
-
nColumns
-
getColumn
Description copied from interface:RowGet a DataValueDescriptor in a Row by ordinal position (1-based).- Specified by:
getColumnin interfaceRow- Parameters:
position- The ordinal position of the column.- Returns:
- The DataValueDescriptor, null if no such column exists
- Throws:
StandardException- Thrown on failure.
-
setColumn
Description copied from interface:RowSet a DataValueDescriptor in a Row by ordinal position (1-based). -
getClone
-
getClone
Description copied from interface:ExecRowClone the Row. The cloned row will contain clones of the specified columns and the same object as the original row for the other columns. -
getNewNullRow
Description copied from interface:ExecRowGet a new row with the same columns type as this one, containing nulls.- Specified by:
getNewNullRowin interfaceExecRow
-
resetRowArray
public void resetRowArray()Reset all columns in the row array to null values.- Specified by:
resetRowArrayin interfaceExecRow
-
cloneColumn
Description copied from interface:ExecRowGet a clone of a DataValueDescriptor from an ExecRow.- Specified by:
cloneColumnin interfaceExecRow- Parameters:
columnPosition- (1 based)
-
orderedNulls
public void orderedNulls(int columnPosition) Description copied from interface:ExecIndexRowThese two methods are a sort of a hack. The store implements ordered null semantics for start and stop positioning, which is correct for IS NULL and incorrect for everything else. To work around this, TableScanResultSet will check whether the start and stop positions have NULL in any column position other than for an IS NULL check. If so, it won't do the scan (that is, it will return no rows). This method is to inform this ExecIndexRow (which can be used for start and stop positioning) that the given column uses ordered null semantics.- Specified by:
orderedNullsin interfaceExecIndexRow- Parameters:
columnPosition- The position of the column that uses ordered null semantics (zero-based).
-
areNullsOrdered
public boolean areNullsOrdered(int columnPosition) Description copied from interface:ExecIndexRowReturn true if orderedNulls was called on this ExecIndexRow for the given column position.- Specified by:
areNullsOrderedin interfaceExecIndexRow- Parameters:
columnPosition- The position of the column (zero-based) for which we want to check if ordered null semantics are used.- Returns:
- true if we are to use ordered null semantics on the given column
-
execRowToExecIndexRow
Turn the ExecRow into an ExecIndexRow.- Specified by:
execRowToExecIndexRowin interfaceExecIndexRow
-
getNewObjectArray
public void getNewObjectArray()Description copied from interface:ExecRowGet a new DataValueDescriptor[]- Specified by:
getNewObjectArrayin interfaceExecRow
-