|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.access.conglomerate.OpenConglomerateScratchSpace
public class OpenConglomerateScratchSpace
A utility class to store and use temporary scratch space associated with a conglomerate.
Field Summary | |
---|---|
private int[] |
collation_ids
|
private int[] |
format_ids
A complete array of format id's and collation_ids for this conglomerate. |
private DataValueDescriptor[] |
row_for_export_template
A template of info about the classes in the returned row. |
private DataValueDescriptor[] |
scratch_row
A Scratch row used for qualifying rows in the conglomerate. |
private RowPosition |
scratch_row_position
Scratch space used by ConglomerateController . |
private DataValueDescriptor[] |
scratch_template
A Scratch template used for searching and qualifying rows in the conglomerate. |
Constructor Summary | |
---|---|
OpenConglomerateScratchSpace(int[] format_ids,
int[] collation_ids)
Creates a new scratch space. |
Method Summary | |
---|---|
DataValueDescriptor[] |
get_row_for_export(Transaction rawtran)
Return an empty template (possibly partial) row to be given back to a client. |
RowPosition |
get_scratch_row_position()
Return a scratch RowPosition. |
DataValueDescriptor[] |
get_scratch_row(Transaction rawtran)
Return an empty template (possibly partial) row to be used and reused internally for processing. |
DataValueDescriptor[] |
get_template(Transaction rawtran)
Return a complete empty row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DataValueDescriptor[] row_for_export_template
This template is allocated on demand, and is used to efficiently create new rows for export from this class. This variable is for use by get_row_for_export().
private DataValueDescriptor[] scratch_template
private DataValueDescriptor[] scratch_row
private int[] format_ids
private int[] collation_ids
private RowPosition scratch_row_position
ConglomerateController
.
ConglomerateController.delete(org.apache.derby.iapi.types.RowLocation)
,
ConglomerateController.replace(org.apache.derby.iapi.types.RowLocation, org.apache.derby.iapi.types.DataValueDescriptor[], org.apache.derby.iapi.services.io.FormatableBitSet)
Constructor Detail |
---|
public OpenConglomerateScratchSpace(int[] format_ids, int[] collation_ids)
format_ids
- format identifiers for columns in the rowcollation_ids
- collation identifiers for the columns in the rowMethod Detail |
---|
public DataValueDescriptor[] get_row_for_export(Transaction rawtran) throws StandardException
The main use of this is for fetchSet() and fetchNextGroup() which allocate rows and then give them back entirely to the caller.
StandardException
- Standard exception policy.public DataValueDescriptor[] get_scratch_row(Transaction rawtran) throws StandardException
The main use of this is for qualifying rows where a row has not been provided by the client. This routine cache's a single row for reuse by the caller, if the caller needs 2 concurrent scratch rows, some other mechanism must be used.
StandardException
- Standard exception policy.public DataValueDescriptor[] get_template(Transaction rawtran) throws StandardException
The main use of this is for searching a tree where a complete copy of the row is needed for searching.
StandardException
- Standard exception policy.public RowPosition get_scratch_row_position()
Used by GenericConglomerateController.delete() and GenericConglomerateController.replace(). It may be reused so callers must insure that object no longer needed before next possible call to get it again.
StandardException
- Standard exception policy.
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |