public class T_RowSource
extends java.lang.Object
implements org.apache.derby.iapi.store.access.RowSource
A RowSource can come from many sources - from rows that are from fast path import, to rows coming out of a sort for index creation.
RowSource
Modifier and Type | Field and Description |
---|---|
private int |
columnCount |
protected static int |
DEFAULT_COLUMN_COUNT |
protected static int |
DEFAULT_ROW_COUNT |
protected static int |
DEFAULT_SEED |
private boolean |
forceAbort |
static int |
INTEGER_ROW_TYPE |
protected static java.lang.String |
REC_001 |
protected static java.lang.String |
REC_002 |
protected static java.lang.String |
REC_003 |
protected static java.lang.String |
REC_004 |
protected static java.lang.String |
REC_005 |
protected static java.lang.String |
REC_006 |
protected static java.lang.String |
REC_007 |
protected static java.lang.String |
REC_008 |
private org.apache.derby.iapi.types.DataValueDescriptor[] |
row |
private int |
rowCount |
static int |
STRING_ROW_TYPE |
private org.apache.derby.iapi.store.raw.Transaction |
t |
private org.apache.derby.iapi.services.io.FormatableBitSet |
validColumns |
Constructor and Description |
---|
T_RowSource() |
T_RowSource(int count,
int columnCount,
int rowType,
boolean forceAbort,
org.apache.derby.iapi.store.raw.Transaction t) |
T_RowSource(int count,
int columnCount,
int rowType,
org.apache.derby.iapi.services.io.FormatableBitSet validColumns) |
Modifier and Type | Method and Description |
---|---|
void |
closeRowSource()
closeRowSource tells the RowSource that it will no longer need to
return any rows and it can release any resource it may have.
|
org.apache.derby.iapi.types.DataValueDescriptor[] |
getNextRowFromRowSource()
Get the next row as an array of column objects.
|
org.apache.derby.iapi.types.DataValueDescriptor[] |
getTemplate()
Get a copy of the template row.
|
org.apache.derby.iapi.services.io.FormatableBitSet |
getValidColumns()
getValidColumns describes the DataValueDescriptor[] returned by all calls
to the getNextRowFromRowSource() call.
|
boolean |
hasMoreRows() |
boolean |
needsRowLocation()
needsRowLocation returns true iff this the row source expects the
drainer of the row source to call rowLocation after getting a row from
getNextRowFromRowSource.
|
boolean |
needsToClone() |
void |
rowLocation(org.apache.derby.iapi.types.RowLocation rl)
rowLocation is not implemented here
|
private void |
setIntegerRow() |
private org.apache.derby.iapi.types.DataValueDescriptor[] |
setStringRow() |
public static final int INTEGER_ROW_TYPE
public static final int STRING_ROW_TYPE
protected static final java.lang.String REC_001
protected static final java.lang.String REC_002
protected static final java.lang.String REC_003
protected static final java.lang.String REC_004
protected static final java.lang.String REC_005
protected static final java.lang.String REC_006
protected static final java.lang.String REC_007
protected static final java.lang.String REC_008
protected static final int DEFAULT_ROW_COUNT
protected static final int DEFAULT_COLUMN_COUNT
protected static final int DEFAULT_SEED
private int rowCount
private int columnCount
private org.apache.derby.iapi.types.DataValueDescriptor[] row
private org.apache.derby.iapi.services.io.FormatableBitSet validColumns
private boolean forceAbort
private org.apache.derby.iapi.store.raw.Transaction t
public T_RowSource()
public T_RowSource(int count, int columnCount, int rowType, boolean forceAbort, org.apache.derby.iapi.store.raw.Transaction t)
public T_RowSource(int count, int columnCount, int rowType, org.apache.derby.iapi.services.io.FormatableBitSet validColumns)
public boolean hasMoreRows() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
- Thrown on errorpublic org.apache.derby.iapi.types.DataValueDescriptor[] getNextRowFromRowSource() throws org.apache.derby.iapi.error.StandardException
getNextRowFromRowSource
in interface org.apache.derby.iapi.store.access.RowSource
org.apache.derby.iapi.error.StandardException
- Derby Standard Error Policypublic org.apache.derby.iapi.services.io.FormatableBitSet getValidColumns()
getValidColumns
in interface org.apache.derby.iapi.store.access.RowSource
public void closeRowSource()
closeRowSource
in interface org.apache.derby.iapi.store.access.RowSource
public boolean needsRowLocation()
rowLocation(org.apache.derby.iapi.types.RowLocation)
public boolean needsToClone()
needsToClone
in interface org.apache.derby.iapi.store.access.RowSource
RowSource.needsToClone()
public void rowLocation(org.apache.derby.iapi.types.RowLocation rl)
public org.apache.derby.iapi.types.DataValueDescriptor[] getTemplate() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
- Derby Standard Error Policyprivate void setIntegerRow()
private org.apache.derby.iapi.types.DataValueDescriptor[] setStringRow()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.