public class T_QualifierTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
init_conglomerate_type |
private int |
init_order |
private org.apache.derby.iapi.services.stream.HeaderPrintWriter |
init_out |
private java.util.Properties |
init_properties |
private boolean |
init_temporary |
static int |
ORDER_BACKWARD |
static int |
ORDER_DESC |
static int |
ORDER_FORWARD |
static int |
ORDER_NONE |
Constructor and Description |
---|
T_QualifierTest(java.lang.String conglomerate_type,
java.util.Properties properties,
boolean temporary,
org.apache.derby.iapi.services.stream.HeaderPrintWriter out,
int order) |
Modifier and Type | Method and Description |
---|---|
private static java.util.HashSet<java.lang.Long> |
create_hash_set(int expect_key,
int expect_numrows,
int order)
Private/Protected methods of This class:
|
private static boolean |
fail(java.lang.String msg) |
private static int |
flip_scan_op(int op) |
private void |
progress(java.lang.String msg) |
static boolean |
t_scan(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
org.apache.derby.iapi.types.DataValueDescriptor[] init_scan_template,
org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template,
org.apache.derby.iapi.types.DataValueDescriptor[] start_key,
int start_op,
org.apache.derby.iapi.store.access.Qualifier[][] qualifier,
org.apache.derby.iapi.types.DataValueDescriptor[] stop_key,
int stop_op,
int expect_numrows,
int lowest_expect_key,
int order)
Test a single scan.
|
static boolean |
t_scanFetchHashtable(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template,
org.apache.derby.iapi.types.DataValueDescriptor[] start_key,
int start_op,
org.apache.derby.iapi.store.access.Qualifier[][] qualifier,
org.apache.derby.iapi.types.DataValueDescriptor[] stop_key,
int stop_op,
int expect_numrows,
int input_expect_key,
int order)
Test scan which does FetchSet.
|
static boolean |
t_scanFetchNext(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
org.apache.derby.iapi.types.DataValueDescriptor[] init_scan_template,
org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template,
org.apache.derby.iapi.types.DataValueDescriptor[] start_key,
int start_op,
org.apache.derby.iapi.store.access.Qualifier[][] qualifier,
org.apache.derby.iapi.types.DataValueDescriptor[] stop_key,
int stop_op,
int expect_numrows,
int input_expect_key,
int order)
Test scan which does FetchNext with all of the fields.
|
static boolean |
t_scanFetchNextGroup(org.apache.derby.iapi.store.access.TransactionController tc,
int group_size,
long conglomid,
org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template,
org.apache.derby.iapi.types.DataValueDescriptor[] start_key,
int start_op,
org.apache.derby.iapi.store.access.Qualifier[][] qualifier,
org.apache.derby.iapi.types.DataValueDescriptor[] stop_key,
int stop_op,
int expect_numrows,
int input_expect_key,
int order)
Test scan which does FetchNextGroup with all of the fields.
|
static boolean |
t_scanFetchNextPartial(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template,
org.apache.derby.iapi.types.DataValueDescriptor[] start_key,
int start_op,
org.apache.derby.iapi.store.access.Qualifier[][] qualifier,
org.apache.derby.iapi.types.DataValueDescriptor[] stop_key,
int stop_op,
int expect_numrows,
int input_expect_key,
int order)
Test scan which does FetchNext with subset of fields.
|
private static boolean |
t_scanNext(org.apache.derby.iapi.store.access.TransactionController tc,
long conglomid,
org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template,
org.apache.derby.iapi.types.DataValueDescriptor[] start_key,
int start_op,
org.apache.derby.iapi.store.access.Qualifier[][] qualifier,
org.apache.derby.iapi.types.DataValueDescriptor[] stop_key,
int stop_op,
int expect_numrows,
int input_expect_key,
int order) |
boolean |
t_testqual(org.apache.derby.iapi.store.access.TransactionController tc) |
private java.lang.String init_conglomerate_type
private java.util.Properties init_properties
private boolean init_temporary
private org.apache.derby.iapi.services.stream.HeaderPrintWriter init_out
private int init_order
public static final int ORDER_FORWARD
public static final int ORDER_BACKWARD
public static final int ORDER_NONE
public static final int ORDER_DESC
public T_QualifierTest(java.lang.String conglomerate_type, java.util.Properties properties, boolean temporary, org.apache.derby.iapi.services.stream.HeaderPrintWriter out, int order)
private static java.util.HashSet<java.lang.Long> create_hash_set(int expect_key, int expect_numrows, int order)
private static int flip_scan_op(int op)
public static boolean t_scan(org.apache.derby.iapi.store.access.TransactionController tc, long conglomid, org.apache.derby.iapi.types.DataValueDescriptor[] init_scan_template, org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template, org.apache.derby.iapi.types.DataValueDescriptor[] start_key, int start_op, org.apache.derby.iapi.store.access.Qualifier[][] qualifier, org.apache.derby.iapi.types.DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int lowest_expect_key, int order) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
private static boolean t_scanNext(org.apache.derby.iapi.store.access.TransactionController tc, long conglomid, org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template, org.apache.derby.iapi.types.DataValueDescriptor[] start_key, int start_op, org.apache.derby.iapi.store.access.Qualifier[][] qualifier, org.apache.derby.iapi.types.DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int input_expect_key, int order) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
public static boolean t_scanFetchNext(org.apache.derby.iapi.store.access.TransactionController tc, long conglomid, org.apache.derby.iapi.types.DataValueDescriptor[] init_scan_template, org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template, org.apache.derby.iapi.types.DataValueDescriptor[] start_key, int start_op, org.apache.derby.iapi.store.access.Qualifier[][] qualifier, org.apache.derby.iapi.types.DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int input_expect_key, int order) throws org.apache.derby.iapi.error.StandardException, T_Fail
FetchNext() may be optimized by the underlying scan code to try and not do multiple fetches of the same row for the user, but if the user asks for one column, but the stop position depends on the whole row this optimization is not possible.
org.apache.derby.iapi.error.StandardException
- Standard exception policy.T_Fail
public static boolean t_scanFetchNextGroup(org.apache.derby.iapi.store.access.TransactionController tc, int group_size, long conglomid, org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template, org.apache.derby.iapi.types.DataValueDescriptor[] start_key, int start_op, org.apache.derby.iapi.store.access.Qualifier[][] qualifier, org.apache.derby.iapi.types.DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int input_expect_key, int order) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- Standard exception policy.T_Fail
public static boolean t_scanFetchNextPartial(org.apache.derby.iapi.store.access.TransactionController tc, long conglomid, org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template, org.apache.derby.iapi.types.DataValueDescriptor[] start_key, int start_op, org.apache.derby.iapi.store.access.Qualifier[][] qualifier, org.apache.derby.iapi.types.DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int input_expect_key, int order) throws org.apache.derby.iapi.error.StandardException, T_Fail
FetchNext() may be optimized by the underlying scan code to try and not do multiple fetches of the same row for the user, but if the user asks for one column, but the stop position depends on the whole row this optimization is not possible.
org.apache.derby.iapi.error.StandardException
- Standard exception policy.T_Fail
public static boolean t_scanFetchHashtable(org.apache.derby.iapi.store.access.TransactionController tc, long conglomid, org.apache.derby.iapi.types.DataValueDescriptor[] fetch_template, org.apache.derby.iapi.types.DataValueDescriptor[] start_key, int start_op, org.apache.derby.iapi.store.access.Qualifier[][] qualifier, org.apache.derby.iapi.types.DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int input_expect_key, int order) throws org.apache.derby.iapi.error.StandardException, T_Fail
FetchSet() returns the entire result set in the hash table.
org.apache.derby.iapi.error.StandardException
- Standard exception policy.T_Fail
public boolean t_testqual(org.apache.derby.iapi.store.access.TransactionController tc) throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
T_Fail
private void progress(java.lang.String msg)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.