Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class IndexValueRow

extends Object
implements ExecIndexRow
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.execute.ExecIndexRow, org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.Row
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.io.FormatableBitSet, .Storable, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ExecIndexRow, .ExecRow, org.apache.derby.iapi.types.DataValueDescriptor

Mapper of ValueRow into ExecIndexRow.

Field Summary

Modifier and TypeField and Description
private ExecRow

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
areNullsOrdered(int
The position of the column (zero-based) for which we want to check if ordered null semantics are used.
columnPosition
)

Implements org.apache.derby.iapi.sql.execute.ExecIndexRow.areNullsOrdered.

Return true if orderedNulls was called on this ExecIndexRow for the given column position.

public DataValueDescriptor
cloneColumn(int
(1 based)
columnPosition
)

Implements org.apache.derby.iapi.sql.execute.ExecRow.cloneColumn.

Get a clone of a DataValueDescriptor from an ExecRow.

public void
public ExecRow
getClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row and its contents.

public ExecRow
getClone(FormatableBitSet
1-based FormatableBitSet representing the columns to clone.
clonedCols
)

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row.

public DataValueDescriptor
getColumn(int
The ordinal position of the column.
position
)

Implements org.apache.derby.iapi.sql.Row.getColumn.

Get a DataValueDescriptor in a Row by ordinal position (1-based).

public ExecRow
getNewNullRow()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getNewNullRow.

Get a new row with the same columns type as this one, containing nulls.

public void
public DataValueDescriptor[]
getRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArray.

Get the array form of the row that Access expects.

public DataValueDescriptor[]
getRowArrayClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArrayClone.

Get a clone of the array form of the row that Access expects.

public int
public void
orderedNulls(int
The position of the column that uses ordered null semantics (zero-based).
columnPosition
)

Implements org.apache.derby.iapi.sql.execute.ExecIndexRow.orderedNulls.

These two methods are a sort of a hack.

public void
resetRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.resetRowArray.

Reset all columns in the row array to null values.

public void
setColumn(int
The ordinal position of the column.
position
,
DataValueDescriptor
The column value to set
col
)

Implements org.apache.derby.iapi.sql.Row.setColumn.

Set a DataValueDescriptor in a Row by ordinal position (1-based).

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

valueRowback to summary
private ExecRow valueRow

Constructor Detail

IndexValueRowback to summary
pack-priv IndexValueRow(ExecRow valueRow)

Method Detail

areNullsOrderedback to summary
public boolean areNullsOrdered(int columnPosition)

Implements org.apache.derby.iapi.sql.execute.ExecIndexRow.areNullsOrdered.

Doc from org.apache.derby.iapi.sql.execute.ExecIndexRow.areNullsOrdered.

Return true if orderedNulls was called on this ExecIndexRow for the given column position.

Parameters
columnPosition:int

The position of the column (zero-based) for which we want to check if ordered null semantics are used.

Returns:boolean

true if we are to use ordered null semantics on the given column

cloneColumnback to summary
public DataValueDescriptor cloneColumn(int columnPosition)

Implements org.apache.derby.iapi.sql.execute.ExecRow.cloneColumn.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.cloneColumn.

Get a clone of a DataValueDescriptor from an ExecRow.

Parameters
columnPosition:int

(1 based)

execRowToExecIndexRowback to summary
public void execRowToExecIndexRow(ExecRow valueRow)

Implements org.apache.derby.iapi.sql.execute.ExecIndexRow.execRowToExecIndexRow.

Turn the ExecRow into an ExecIndexRow.

getCloneback to summary
public ExecRow getClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row and its contents.

Returns:ExecRow

Row A clone of the Row and its contents.

getCloneback to summary
public ExecRow getClone(FormatableBitSet clonedCols)

Implements org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getClone.

Clone the Row. The cloned row will contain clones of the specified columns and the same object as the original row for the other columns.

Parameters
clonedCols:FormatableBitSet

1-based FormatableBitSet representing the columns to clone.

Returns:ExecRow

Row A clone of the Row and its contents.

getColumnback to summary
public DataValueDescriptor getColumn(int position) throws StandardException

Implements org.apache.derby.iapi.sql.Row.getColumn.

Doc from org.apache.derby.iapi.sql.Row.getColumn.

Get a DataValueDescriptor in a Row by ordinal position (1-based).

Parameters
position:int

The ordinal position of the column.

Returns:DataValueDescriptor

The DataValueDescriptor, null if no such column exists

Exceptions
StandardException:
Thrown on failure.
getNewNullRowback to summary
public ExecRow getNewNullRow()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getNewNullRow.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getNewNullRow.

Get a new row with the same columns type as this one, containing nulls.

getNewObjectArrayback to summary
public void getNewObjectArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getNewObjectArray.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.getNewObjectArray.

Get a new DataValueDescriptor[]

getRowArrayback to summary
public DataValueDescriptor[] getRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArray.

Get the array form of the row that Access expects.

See Also
ExecRow#getRowArray
getRowArrayCloneback to summary
public DataValueDescriptor[] getRowArrayClone()

Implements org.apache.derby.iapi.sql.execute.ExecRow.getRowArrayClone.

Get a clone of the array form of the row that Access expects.

See Also
ExecRow#getRowArray
nColumnsback to summary
public int nColumns()

Implements org.apache.derby.iapi.sql.Row.nColumns.

orderedNullsback to summary
public void orderedNulls(int columnPosition)

Implements org.apache.derby.iapi.sql.execute.ExecIndexRow.orderedNulls.

Doc from org.apache.derby.iapi.sql.execute.ExecIndexRow.orderedNulls.

These 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.

Parameters
columnPosition:int

The position of the column that uses ordered null semantics (zero-based).

resetRowArrayback to summary
public void resetRowArray()

Implements org.apache.derby.iapi.sql.execute.ExecRow.resetRowArray.

Reset all columns in the row array to null values.

setColumnback to summary
public void setColumn(int position, DataValueDescriptor col)

Implements org.apache.derby.iapi.sql.Row.setColumn.

Doc from org.apache.derby.iapi.sql.Row.setColumn.

Set a DataValueDescriptor in a Row by ordinal position (1-based).

Parameters
position:int

The ordinal position of the column.

col:DataValueDescriptor

The column value to set

setRowArrayback to summary
public void setRowArray(DataValueDescriptor[] value)

Implements org.apache.derby.iapi.sql.execute.ExecRow.setRowArray.

Doc from org.apache.derby.iapi.sql.execute.ExecRow.setRowArray.

Set the array of objects

See Also
ExecRow#getRowArray
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object