public final class TemplateRow
extends java.lang.Object
Modifier | Constructor | Description |
---|---|---|
private |
TemplateRow() |
Modifier and Type | Method | Description |
---|---|---|
private static DataValueDescriptor[] |
allocate_objects(Transaction rawtran,
int num_cols_to_allocate,
FormatableBitSet column_list,
int[] format_ids,
int[] collation_ids) |
Allocate new objects to array based on format id's and column_list.
|
static boolean |
checkColumnTypes(DataValueFactory dvf,
int[] format_ids,
int[] collation_ids,
DataValueDescriptor[] row) |
Check that columns in the row conform to a set of format id's,
both in number and type.
|
static DataValueDescriptor[] |
newBranchRow(Transaction rawtran,
int[] format_ids,
int[] collation_ids,
DataValueDescriptor page_ptr) |
Generate an "empty" row to match the format id + coluumn specification.
|
static DataValueDescriptor[] |
newRow(Transaction rawtran,
FormatableBitSet column_list,
int[] format_ids,
int[] collation_ids) |
Generate an "empty" row to match the format id specification.
|
static DataValueDescriptor[] |
newRow(DataValueDescriptor[] template) |
Generate an "empty" row to match the format id specification.
|
static DataValueDescriptor[] |
newU8Row(int nkeys) |
Constuctor for creating a template row which stores n SQLLongint's
|
private static DataValueDescriptor[] allocate_objects(Transaction rawtran, int num_cols_to_allocate, FormatableBitSet column_list, int[] format_ids, int[] collation_ids) throws StandardException
num_cols_to_allocate
- The number of columns to allocate for array.column_list
- description of partial set of columns to
built as described in RowUtil. If null do
all the columns.format_ids
- An array of format ids representing every
column in the table. column_list describes
which of these columns to populate into the
columns array.StandardException
- Standard exception policy.public static DataValueDescriptor[] newU8Row(int nkeys)
public static DataValueDescriptor[] newRow(DataValueDescriptor[] template) throws StandardException
Generate an array of new'd objects matching the format id specification passed in. This routine is mostly used by the btree code to generate temporary rows needed during operations like split. It is more efficient to allocate new objects based on the old object vs. calling the Monitor.
template
- An array which represents a row as described in
RowUtil.StandardException
- Standard exception policy.RowUtil
public static DataValueDescriptor[] newRow(Transaction rawtran, FormatableBitSet column_list, int[] format_ids, int[] collation_ids) throws StandardException
Generate an array of new'd objects matching the format id specification passed in. This routine is mostly used by the btree code to generate temporary rows needed during operations like split.
format_ids
- an array of format id's, one per column in row.StandardException
- Standard exception policy.public static DataValueDescriptor[] newBranchRow(Transaction rawtran, int[] format_ids, int[] collation_ids, DataValueDescriptor page_ptr) throws StandardException
Generate an array of new'd objects matching the format id specification passed in, and the column passed in. The new row is first made up of columns matching the format ids, and then followed by one other column matching the column passed in. This routine is mostly used by the btree code to generate temporary branch rows needed during operations like split.
format_ids
- an array of format id's, one per column in row.page_ptr
- The object to place in the last column of the template.StandardException
- Standard exception policy.public static boolean checkColumnTypes(DataValueFactory dvf, int[] format_ids, int[] collation_ids, DataValueDescriptor[] row) throws StandardException
format_ids
- array of format ids which are the types of cols in rowrow
- the array of columns that make up the row.StandardException
- Standard exception policy.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.