| java.lang.Object org.apache.derby.impl.sql.execute.RowUtil
RowUtil | public class RowUtil (Code) | | Utility class manipulating rows.
Note: this class is public so it may be used by Replication execution
code. It is basically not public.
|
Method Summary | |
public static void | copyCloneColumns(ExecRow to, ExecRow from, int count) Clone an ExecRow's columns and place the coloned columns in another
ExecRow. | public static void | copyRefColumns(ExecRow to, ExecRow from) Copy references for an ExecRow's columns to another ExecRow. | public static void | copyRefColumns(ExecRow to, ExecRow from, int count) Copy references for an ExecRow's columns to another ExecRow. | public static void | copyRefColumns(ExecRow to, ExecRow from, int start, int count) Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: from - Get the column references from here. Parameters: start - The 0 based index of the first column to copy. | public static void | copyRefColumns(ExecRow to, int toStart, ExecRow from, int fromStart, int count) Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: toStart - The 0-based index of the first column to replace. Parameters: from - Get the column references from here. Parameters: fromStart - The 0 based index of the first column to copy. | public static void | copyRefColumns(ExecRow to, ExecRow from, int[] positions) Copy references for an ExecRow's columns to another ExecRow. | public static void | copyRefColumns(ExecRow to, ExecRow from, FormatableBitSet positions) Copy references for an ExecRow's columns to another ExecRow.
For copying from a compact array to a reconstituted array.
E.g. | public static void | copyRefColumns(ExecRow setMe) Empty columns -- i.e. | public static ExecIndexRow | getEmptyIndexRow(int columnCount, ContextManager cm) Get an empty ExecIndexRow. | public static ExecRow | getEmptyValueRow(int columnCount, LanguageConnectionContext lcc) Get an empty ExecRow.
Parameters: columnCount - the number of columns in the row. | public static boolean | inAscendingOrder(int[] colMap) | public static String | intArrayToString(int[] colMap) | public static FormatableBitSet | shift(FormatableBitSet bitSet, int n) Shift a FormatableBitSet N bits toward the zero end.
e.g. | public static String | toString(ExecRow row) | public static String | toString(Object[] objs) | public static String | toString(ExecRow row, int startPoint, int endPoint) | public static String | toString(Object[] objs, int startPoint, int endPoint) | public static String | toString(ExecRow row, int[] positions) | public static String | toString(Object[] objs, int[] positions) |
copyCloneColumns | public static void copyCloneColumns(ExecRow to, ExecRow from, int count)(Code) | | Clone an ExecRow's columns and place the coloned columns in another
ExecRow.
Parameters: to - Place the cloned columns here. Parameters: from - Get the columns to clone here. Parameters: count - Clone this number of columns. |
copyRefColumns | public static void copyRefColumns(ExecRow to, ExecRow from)(Code) | | Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: from - Get the column references from here. |
copyRefColumns | public static void copyRefColumns(ExecRow to, ExecRow from, int count) throws StandardException(Code) | | Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: from - Get the column references from here. Parameters: count - Copy this number of column references. |
copyRefColumns | public static void copyRefColumns(ExecRow to, ExecRow from, int start, int count) throws StandardException(Code) | | Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: from - Get the column references from here. Parameters: start - The 0 based index of the first column to copy. Parameters: count - Copy this number of column references. |
copyRefColumns | public static void copyRefColumns(ExecRow to, int toStart, ExecRow from, int fromStart, int count) throws StandardException(Code) | | Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: toStart - The 0-based index of the first column to replace. Parameters: from - Get the column references from here. Parameters: fromStart - The 0 based index of the first column to copy. Parameters: count - Copy this number of column references. |
copyRefColumns | public static void copyRefColumns(ExecRow to, ExecRow from, int[] positions) throws StandardException(Code) | | Copy references for an ExecRow's columns to another ExecRow.
Parameters: to - Place the column references here. Parameters: from - Get the column references from here. Parameters: positions - array of 1-based column ids to copy from "from" to "to" |
copyRefColumns | public static void copyRefColumns(ExecRow to, ExecRow from, FormatableBitSet positions) throws StandardException(Code) | | Copy references for an ExecRow's columns to another ExecRow.
For copying from a compact array to a reconstituted array.
E.g. if positions = {2, 4}, and from = {666, 777} then
to => {null, 666, null, 777}. Will only go as far as to.getArray().length.
Parameters: to - Place the column references here. Sparse array Parameters: from - Get the column references from here. Compact array Parameters: positions - array of 1-based column ids to copy from "from" to "to" |
copyRefColumns | public static void copyRefColumns(ExecRow setMe) throws StandardException(Code) | | Empty columns -- i.e. make them refer to a java null.
This is useful to remove dangling references to a column.
Parameters: setMe - Set columns in this storable to be empty. |
getEmptyIndexRow | public static ExecIndexRow getEmptyIndexRow(int columnCount, ContextManager cm)(Code) | | Get an empty ExecIndexRow.
Parameters: columnCount - the number of columns in the row. Parameters: cm - Current ContextManager the row. |
getEmptyValueRow | public static ExecRow getEmptyValueRow(int columnCount, LanguageConnectionContext lcc)(Code) | | Get an empty ExecRow.
Parameters: columnCount - the number of columns in the row. the row. |
inAscendingOrder | public static boolean inAscendingOrder(int[] colMap)(Code) | | |
intArrayToString | public static String intArrayToString(int[] colMap)(Code) | | intArrayToString
Parameters: colMap - the int array the string |
shift | public static FormatableBitSet shift(FormatableBitSet bitSet, int n)(Code) | | Shift a FormatableBitSet N bits toward the zero end.
e.g. shift({2,4}) -> {1,3}.
Parameters: bitSet - the bit set Parameters: n - the number of bits to shift a new FormatableBitSet with the shifted result |
toString | public static String toString(ExecRow row)(Code) | | toString
Parameters: row - the row the string |
toString | public static String toString(Object[] objs)(Code) | | toString
Parameters: objs - the row array the string |
toString | public static String toString(ExecRow row, int startPoint, int endPoint)(Code) | | toString
Parameters: row - the row Parameters: startPoint - 0 based start point in row array, inclusive Parameters: endPoint - 0 based end point in row array, inclusive the string |
toString | public static String toString(Object[] objs, int startPoint, int endPoint)(Code) | | toString
Parameters: objs - the row array Parameters: startPoint - 0 based start point in row array, inclusive Parameters: endPoint - 0 based end point in row array, inclusive the string |
toString | public static String toString(ExecRow row, int[] positions)(Code) | | toString
Parameters: row - the row Parameters: positions - 1 based array of positions the string |
toString | public static String toString(Object[] objs, int[] positions)(Code) | | toString
Parameters: objs - the row array Parameters: positions - 1 based array of positions the string |
|
|