Package org.apache.derby.iapi.types
Class LocatedRow
- java.lang.Object
-
- org.apache.derby.iapi.types.LocatedRow
-
public class LocatedRow extends java.lang.Object
Mutable holder for the column values and RowLocation of a conglomerate row. Use with caution because values and arrays are not copied when they are passed in and out.
-
-
Field Summary
Fields Modifier and Type Field Description private DataValueDescriptor[]
_columnValues
private RowLocation
_rowLocation
-
Constructor Summary
Constructors Constructor Description LocatedRow(DataValueDescriptor[] columnsAndRowLocation)
Construct from an array of column values, where the last value is the RowLocation.LocatedRow(DataValueDescriptor[] columnValues, RowLocation rowLocation)
Construct from column values and row location.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataValueDescriptor[]
columnValues()
Get the array of column valuesDataValueDescriptor[]
flatten()
Flatten this LocatedRow into a DataValueDescriptor[] where the last cell contains the RowLocation.static DataValueDescriptor[]
flatten(DataValueDescriptor[] columnValues, RowLocation rowLocation)
Append a RowLocation to the end of a column arrayRowLocation
rowLocation()
Get the RowLocation
-
-
-
Field Detail
-
_columnValues
private DataValueDescriptor[] _columnValues
-
_rowLocation
private RowLocation _rowLocation
-
-
Constructor Detail
-
LocatedRow
public LocatedRow(DataValueDescriptor[] columnValues, RowLocation rowLocation)
Construct from column values and row location.
-
LocatedRow
public LocatedRow(DataValueDescriptor[] columnsAndRowLocation)
Construct from an array of column values, where the last value is the RowLocation.
-
-
Method Detail
-
columnValues
public DataValueDescriptor[] columnValues()
Get the array of column values
-
flatten
public DataValueDescriptor[] flatten()
Flatten this LocatedRow into a DataValueDescriptor[] where the last cell contains the RowLocation.
-
rowLocation
public RowLocation rowLocation()
Get the RowLocation
-
flatten
public static DataValueDescriptor[] flatten(DataValueDescriptor[] columnValues, RowLocation rowLocation)
Append a RowLocation to the end of a column array
-
-