|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.RowUtil
public class RowUtil
Utility class manipulating rows.
Note: this class is public so it may be used by Replication execution code. It is basically not public.
| Field Summary | |
|---|---|
static long |
rowCountBase
Row count base added for testing JDBC 4.2 |
| Constructor Summary | |
|---|---|
RowUtil()
|
|
| Method Summary | |
|---|---|
static void |
copyCloneColumns(ExecRow to,
ExecRow from,
int count)
Clone an ExecRow's columns and place the coloned columns in another ExecRow. |
static void |
copyRefColumns(ExecRow setMe)
Empty columns -- i.e. make them refer to a java null. |
static void |
copyRefColumns(ExecRow to,
ExecRow from)
Copy references for an ExecRow's columns to another ExecRow. |
static void |
copyRefColumns(ExecRow to,
ExecRow from,
FormatableBitSet positions)
Copy references for an ExecRow's columns to another ExecRow. |
static void |
copyRefColumns(ExecRow to,
ExecRow from,
int count)
Copy references for an ExecRow's columns to another ExecRow. |
static void |
copyRefColumns(ExecRow to,
ExecRow from,
int[] positions)
Copy references for an ExecRow's columns to another ExecRow. |
static void |
copyRefColumns(ExecRow to,
ExecRow from,
int start,
int count)
Copy references for an ExecRow's columns to another ExecRow. |
static void |
copyRefColumns(ExecRow to,
int toStart,
ExecRow from,
int fromStart,
int count)
Copy references for an ExecRow's columns to another ExecRow. |
static ExecIndexRow |
getEmptyIndexRow(int columnCount,
LanguageConnectionContext lcc)
Get an empty ExecIndexRow. |
static ExecRow |
getEmptyValueRow(int columnCount,
LanguageConnectionContext lcc)
Get an empty ExecRow. |
static boolean |
inAscendingOrder(int[] colMap)
|
static java.lang.String |
intArrayToString(int[] colMap)
intArrayToString |
static FormatableBitSet |
shift(FormatableBitSet bitSet,
int n)
Shift a FormatableBitSet N bits toward the zero end. |
static java.lang.String |
toString(ExecRow row)
toString |
static java.lang.String |
toString(ExecRow row,
int[] positions)
toString |
static java.lang.String |
toString(ExecRow row,
int startPoint,
int endPoint)
toString |
static java.lang.String |
toString(java.lang.Object[] objs)
toString |
static java.lang.String |
toString(java.lang.Object[] objs,
int[] positions)
toString |
static java.lang.String |
toString(java.lang.Object[] objs,
int startPoint,
int endPoint)
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long rowCountBase
| Constructor Detail |
|---|
public RowUtil()
| Method Detail |
|---|
public static ExecRow getEmptyValueRow(int columnCount,
LanguageConnectionContext lcc)
columnCount - the number of columns in the row.
public static ExecIndexRow getEmptyIndexRow(int columnCount,
LanguageConnectionContext lcc)
columnCount - the number of columns in the row.
public static void copyCloneColumns(ExecRow to,
ExecRow from,
int count)
to - Place the cloned columns here.from - Get the columns to clone here.count - Clone this number of columns.
public static void copyRefColumns(ExecRow to,
ExecRow from)
to - Place the column references here.from - Get the column references from here.
public static void copyRefColumns(ExecRow to,
ExecRow from,
int count)
throws StandardException
to - Place the column references here.from - Get the column references from here.count - Copy this number of column references.
StandardException
public static void copyRefColumns(ExecRow to,
ExecRow from,
int start,
int count)
throws StandardException
to - Place the column references here.from - Get the column references from here.start - The 0 based index of the first column to copy.count - Copy this number of column references.
StandardException
public static void copyRefColumns(ExecRow to,
int toStart,
ExecRow from,
int fromStart,
int count)
throws StandardException
to - Place the column references here.toStart - The 0-based index of the first column to replace.from - Get the column references from here.fromStart - The 0 based index of the first column to copy.count - Copy this number of column references.
StandardException
public static void copyRefColumns(ExecRow to,
ExecRow from,
int[] positions)
throws StandardException
to - Place the column references here.from - Get the column references from here.positions - array of 1-based column ids to copy from "from" to "to"
StandardException
public static void copyRefColumns(ExecRow to,
ExecRow from,
FormatableBitSet positions)
throws StandardException
to - Place the column references here. Sparse arrayfrom - Get the column references from here. Compact arraypositions - array of 1-based column ids to copy from "from" to "to"
StandardException
public static void copyRefColumns(ExecRow setMe)
throws StandardException
This is useful to remove dangling references to a column.
setMe - Set columns in this storable to be empty.
StandardExceptionpublic static java.lang.String toString(ExecRow row)
row - the row
public static java.lang.String toString(java.lang.Object[] objs)
objs - the row array
public static java.lang.String toString(ExecRow row,
int startPoint,
int endPoint)
row - the rowstartPoint - 0 based start point in row array, inclusiveendPoint - 0 based end point in row array, inclusive
public static java.lang.String toString(java.lang.Object[] objs,
int startPoint,
int endPoint)
objs - the row arraystartPoint - 0 based start point in row array, inclusiveendPoint - 0 based end point in row array, inclusive
public static java.lang.String toString(ExecRow row,
int[] positions)
row - the rowpositions - 1 based array of positions
public static java.lang.String toString(java.lang.Object[] objs,
int[] positions)
objs - the row arraypositions - 1 based array of positions
public static java.lang.String intArrayToString(int[] colMap)
colMap - the int array
public static boolean inAscendingOrder(int[] colMap)
public static FormatableBitSet shift(FormatableBitSet bitSet,
int n)
bitSet - the bit setn - the number of bits to shift
|
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 | ||||||||